summaryrefslogtreecommitdiff
path: root/build_tools
diff options
context:
space:
mode:
authorSiying Dong <siying.d@fb.com>2018-01-09 18:12:32 -0800
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>2018-01-09 18:27:03 -0800
commita478e8569778266abf78fa67a860e805ac7fb86d (patch)
tree3fd0292cc30b552719985f09ec74abd6cf5cd845 /build_tools
parent677f249d6d388780658a79732545b77a276f8e07 (diff)
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 https://github.com/facebook/rocksdb/pull/3346 Differential Revision: D6690544 Pulled By: siying fbshipit-source-id: bbaba9fe2645b6b37144b36ea75beeff88992b49
Diffstat (limited to 'build_tools')
-rwxr-xr-xbuild_tools/build_detect_platform3
1 files changed, 3 insertions, 0 deletions
diff --git a/build_tools/build_detect_platform b/build_tools/build_detect_platform
index 123c1ed86..02dc49632 100755
--- a/build_tools/build_detect_platform
+++ b/build_tools/build_detect_platform
@@ -481,6 +481,9 @@ 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
+ # TODO: Handle this with approprite options.
+ COMMON_FLAGS="$COMMON_FLAGS"
elif [ "$TARGET_OS" != AIX ] && [ "$TARGET_OS" != SunOS ]; then
COMMON_FLAGS="$COMMON_FLAGS -march=native "
elif test "$USE_SSE"; then