Skip to content

Commit 981e315

Browse files
committed
cc.cmake: use -force_cpusubtype_ALL for Darwin PPC
1 parent d9653af commit 981e315

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmake/cc.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,12 +286,18 @@ if (${CORE} STREQUAL PPC970)
286286
if (NOT DYNAMIC_ARCH)
287287
set (CCOMMON_OPT "${CCOMMON_OPT} -mcpu=970 -mtune=970 -maltivec -fno-fast-math")
288288
endif ()
289+
if (APPLE)
290+
set (CCOMMON_OPT "${CCOMMON_OPT} -force_cpusubtype_ALL")
291+
endif ()
289292
endif ()
290293

291294
if (${CORE} STREQUAL PPCG4)
292295
if (NOT DYNAMIC_ARCH)
293296
set (CCOMMON_OPT "${CCOMMON_OPT} -mcpu=G4 -mtune=G4 -maltivec -fno-fast-math")
294297
endif ()
298+
if (APPLE)
299+
set (CCOMMON_OPT "${CCOMMON_OPT} -force_cpusubtype_ALL")
300+
endif ()
295301
endif ()
296302

297303
if (NOT DYNAMIC_ARCH)

0 commit comments

Comments
 (0)