提交 d234366d 编写于 作者: X Xiangquan Xiao

Bazel: Rename WORKSPACE.in to WORKSPACE as MACHINE_ARCH is removed.

上级 5ddb96e6
# Bazel # Bazel
bazel-* bazel-*
WORKSPACE
# Temporary files # Temporary files
*.pyc *.pyc
......
...@@ -63,13 +63,7 @@ function apollo_check_system_config() { ...@@ -63,13 +63,7 @@ function apollo_check_system_config() {
function check_machine_arch() { function check_machine_arch() {
# the machine type, currently support x86_64, aarch64 # the machine type, currently support x86_64, aarch64
MACHINE_ARCH=$(uname -m) MACHINE_ARCH=$(uname -m)
if [ "${MACHINE_ARCH}" != "x86_64" ] && [ "${MACHINE_ARCH}" != "aarch64" ]; then
# Generate WORKSPACE file based on marchine architecture
if [ "$MACHINE_ARCH" == 'x86_64' ]; then
sed "s/MACHINE_ARCH/x86_64/g" WORKSPACE.in > WORKSPACE
elif [ "$MACHINE_ARCH" == 'aarch64' ]; then
sed "s/MACHINE_ARCH/aarch64/g" WORKSPACE.in > WORKSPACE
else
fail "Unknown machine architecture $MACHINE_ARCH" fail "Unknown machine architecture $MACHINE_ARCH"
exit 1 exit 1
fi fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册