cc.cmake: use -force_cpusubtype_ALL for Darwin PPC

This commit is contained in:
barracuda156 2023-12-14 12:01:31 +08:00
parent d9653af018
commit 981e315b30
1 changed files with 6 additions and 0 deletions

View File

@ -286,12 +286,18 @@ if (${CORE} STREQUAL PPC970)
if (NOT DYNAMIC_ARCH) if (NOT DYNAMIC_ARCH)
set (CCOMMON_OPT "${CCOMMON_OPT} -mcpu=970 -mtune=970 -maltivec -fno-fast-math") set (CCOMMON_OPT "${CCOMMON_OPT} -mcpu=970 -mtune=970 -maltivec -fno-fast-math")
endif () endif ()
if (APPLE)
set (CCOMMON_OPT "${CCOMMON_OPT} -force_cpusubtype_ALL")
endif ()
endif () endif ()
if (${CORE} STREQUAL PPCG4) if (${CORE} STREQUAL PPCG4)
if (NOT DYNAMIC_ARCH) if (NOT DYNAMIC_ARCH)
set (CCOMMON_OPT "${CCOMMON_OPT} -mcpu=G4 -mtune=G4 -maltivec -fno-fast-math") set (CCOMMON_OPT "${CCOMMON_OPT} -mcpu=G4 -mtune=G4 -maltivec -fno-fast-math")
endif () endif ()
if (APPLE)
set (CCOMMON_OPT "${CCOMMON_OPT} -force_cpusubtype_ALL")
endif ()
endif () endif ()
if (NOT DYNAMIC_ARCH) if (NOT DYNAMIC_ARCH)