Merge pull request #4370 from barracuda156/unbreak_powerpc

macOS PowerPC: fix CMake build
This commit is contained in:
Martin Kroeker 2023-12-14 10:30:03 +01:00 committed by GitHub
commit 293131d6b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 6 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)