提交 0aa28dba 编写于 作者: A Aaron Xiao 提交者: Xiangquan Xiao

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

This reverts commit d234366d.
上级 d234366d
# Bazel
bazel-*
WORKSPACE
# Temporary files
*.pyc
......
......@@ -63,7 +63,13 @@ function apollo_check_system_config() {
function check_machine_arch() {
# the machine type, currently support x86_64, aarch64
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"
exit 1
fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册