ProcessorTargets: support PowerPC

This commit is contained in:
Sergey Fedorov 2024-04-22 06:36:33 +08:00
parent c72e67ae24
commit 223afc3af8
No known key found for this signature in database
GPG Key ID: 3397EF66A7275D91

View File

@ -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
if(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL arm64)
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()
set(PROC_TARGET_2_FLAGS "-march=native" CACHE STRING "Processor-2 flags")
endif()