File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -736,8 +736,15 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
736736 $1 _CFLAGS_CPU_JVM="${$1 _CFLAGS_CPU_JVM} -mminimal-toc"
737737 elif test "x$FLAGS_CPU" = xppc64le; then
738738 # Little endian machine uses ELFv2 ABI.
739- # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI.
740- $1 _CFLAGS_CPU="-mcpu=power8 -mtune=power10"
739+ # Use Power8 for target cpu, this is the first CPU to support PPC64 LE with ELFv2 ABI.
740+ # Use Power10 for tuning target, this is supported by gcc >= 10
741+ POWER_TUNE_VERSION="-mtune=power10"
742+ FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ ${POWER_TUNE_VERSION}] ,
743+ IF_FALSE: [
744+ POWER_TUNE_VERSION="-mtune=power8"
745+ ]
746+ )
747+ $1 _CFLAGS_CPU="-mcpu=power8 ${POWER_TUNE_VERSION}"
741748 $1 _CFLAGS_CPU_JVM="${$1 _CFLAGS_CPU_JVM} -DABI_ELFv2"
742749 fi
743750 elif test "x$FLAGS_CPU" = xs390x; then
You can’t perform that action at this time.
0 commit comments