Modify build_tools/build_detect_platform to detect and set -march=z10 on Linux s390x.
This commit is contained in:
parent
990509045f
commit
3373c81fa8
@ -360,13 +360,13 @@ fi
|
|||||||
if test "$USE_SSE"; then
|
if test "$USE_SSE"; then
|
||||||
# if Intel SSE instruction set is supported, set USE_SSE=1
|
# if Intel SSE instruction set is supported, set USE_SSE=1
|
||||||
COMMON_FLAGS="$COMMON_FLAGS -msse -msse4.2 "
|
COMMON_FLAGS="$COMMON_FLAGS -msse -msse4.2 "
|
||||||
elif [ "$TARGET_ARCHITECTURE" = s390x ]; then
|
|
||||||
COMMON_FLAGS="$COMMON_FLAGS -march=z10 "
|
|
||||||
elif test -z "$PORTABLE"; then
|
elif test -z "$PORTABLE"; then
|
||||||
if test -n "`echo $TARGET_ARCHITECTURE | grep ^ppc64`"; then
|
if test -n "`echo $TARGET_ARCHITECTURE | grep ^ppc64`"; then
|
||||||
# Tune for this POWER processor, treating '+' models as base models
|
# Tune for this POWER processor, treating '+' models as base models
|
||||||
POWER=`LD_SHOW_AUXV=1 /bin/true | grep AT_PLATFORM | grep -E -o power[0-9]+`
|
POWER=`LD_SHOW_AUXV=1 /bin/true | grep AT_PLATFORM | grep -E -o power[0-9]+`
|
||||||
COMMON_FLAGS="$COMMON_FLAGS -mcpu=$POWER -mtune=$POWER "
|
COMMON_FLAGS="$COMMON_FLAGS -mcpu=$POWER -mtune=$POWER "
|
||||||
|
elif test -n "`echo $TARGET_ARCHITECTURE | grep ^s390x`"; then
|
||||||
|
COMMON_FLAGS="$COMMON_FLAGS -march=z10 "
|
||||||
else
|
else
|
||||||
COMMON_FLAGS="$COMMON_FLAGS -march=native "
|
COMMON_FLAGS="$COMMON_FLAGS -march=native "
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user