Browse Source

cc.cmake: use -force_cpusubtype_ALL for Darwin PPC

tags/v0.3.26
barracuda156 1 year ago
parent
commit
981e315b30
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      cmake/cc.cmake

+ 6
- 0
cmake/cc.cmake 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)


Loading…
Cancel
Save