diff --git a/build_tools/build_detect_platform b/build_tools/build_detect_platform index 5832b03a9..00fae78c5 100755 --- a/build_tools/build_detect_platform +++ b/build_tools/build_detect_platform @@ -360,6 +360,8 @@ fi if test "$USE_SSE"; then # if Intel SSE instruction set is supported, set USE_SSE=1 COMMON_FLAGS="$COMMON_FLAGS -msse -msse4.2 " +elif [ "$TARGET_ARCHITECTURE" = s390x ]; then + COMMON_FLAGS="$COMMON_FLAGS -march=z10 " elif test -z "$PORTABLE"; then if test -n "`echo $TARGET_ARCHITECTURE | grep ^ppc64`"; then # Tune for this POWER processor, treating '+' models as base models