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

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

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