diff --git a/build_tools/build_detect_platform b/build_tools/build_detect_platform index ac30f9ab0..4a52c6cdd 100755 --- a/build_tools/build_detect_platform +++ b/build_tools/build_detect_platform @@ -537,7 +537,7 @@ if test -z "$PORTABLE"; then COMMON_FLAGS="$COMMON_FLAGS -mcpu=$POWER -mtune=$POWER " elif test -n "`echo $TARGET_ARCHITECTURE | grep ^s390x`"; then COMMON_FLAGS="$COMMON_FLAGS -march=z10 " - elif test -n "`echo $TARGET_ARCHITECTURE | grep ^arm`"; then + elif test -n "`echo $TARGET_ARCHITECTURE | grep -e^arm -e^aarch64`"; then # TODO: Handle this with approprite options. COMMON_FLAGS="$COMMON_FLAGS" elif test -n "`echo $TARGET_ARCHITECTURE | grep ^aarch64`"; then