ProcessorTargets: support PowerPC
This commit is contained in:
parent
c72e67ae24
commit
223afc3af8
@ -10,6 +10,8 @@ set(PROC_TARGET_2_LABEL native CACHE STRING "Processor-2 label - use it for your
|
|||||||
# The flag is different on x86 and Arm based processors
|
# The flag is different on x86 and Arm based processors
|
||||||
if(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL arm64)
|
if(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL arm64)
|
||||||
set(PROC_TARGET_2_FLAGS "-mcpu=native" CACHE STRING "Processor-2 flags")
|
set(PROC_TARGET_2_FLAGS "-mcpu=native" CACHE STRING "Processor-2 flags")
|
||||||
|
elseif(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "ppc|powerpc")
|
||||||
|
set(PROC_TARGET_2_FLAGS "-mtune=native" CACHE STRING "Processor-2 flags")
|
||||||
else()
|
else()
|
||||||
set(PROC_TARGET_2_FLAGS "-march=native" CACHE STRING "Processor-2 flags")
|
set(PROC_TARGET_2_FLAGS "-march=native" CACHE STRING "Processor-2 flags")
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user