Skip to content

Commit a478e85

Browse files
siyingfacebook-github-bot
authored andcommitted
Remove GCC parameter "-march=native" for ARM
Summary: Most popular versions of GCC can't identify platform on ARM if "-march=native" is specified. Remove it to unblock most people. Closes facebook#3346 Differential Revision: D6690544 Pulled By: siying fbshipit-source-id: bbaba9fe2645b6b37144b36ea75beeff88992b49
1 parent 677f249 commit a478e85

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build_tools/build_detect_platform

+3
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,9 @@ if test -z "$PORTABLE"; then
481481
COMMON_FLAGS="$COMMON_FLAGS -mcpu=$POWER -mtune=$POWER "
482482
elif test -n "`echo $TARGET_ARCHITECTURE | grep ^s390x`"; then
483483
COMMON_FLAGS="$COMMON_FLAGS -march=z10 "
484+
elif test -n "`echo $TARGET_ARCHITECTURE | grep ^arm`"; then
485+
# TODO: Handle this with approprite options.
486+
COMMON_FLAGS="$COMMON_FLAGS"
484487
elif [ "$TARGET_OS" != AIX ] && [ "$TARGET_OS" != SunOS ]; then
485488
COMMON_FLAGS="$COMMON_FLAGS -march=native "
486489
elif test "$USE_SSE"; then

0 commit comments

Comments
 (0)