mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-28 22:55:41 +00:00
18 lines
475 B
Bash
Executable File
18 lines
475 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
bazel_cmd=(bazel)
|
|
if [ -n "${BAZEL_OUTPUT_USER_ROOT:-}" ]; then
|
|
bazel_cmd+=("--output_user_root=${BAZEL_OUTPUT_USER_ROOT}")
|
|
fi
|
|
if [ -n "${BAZEL_OUTPUT_BASE:-}" ]; then
|
|
bazel_cmd+=("--output_base=${BAZEL_OUTPUT_BASE}")
|
|
fi
|
|
|
|
"${bazel_cmd[@]}" build \
|
|
--platforms=//:linux_arm64 \
|
|
--extra_toolchains=@llvm_toolchain_linux_arm64//:cc-toolchain-aarch64-linux \
|
|
"$@" \
|
|
//src/main/cpp/net/eagle0/shardok:shardok-server
|