Merge pull request #1046 from madscientist159/master

Add support for POWER architecture
pull/1053/head
Edouard Griffiths 2021-11-13 13:01:34 +01:00 zatwierdzone przez GitHub
commit 48d86d08aa
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -103,6 +103,7 @@ else()
detect_architecture("__i386__" x86)
detect_architecture("__arm__" ARM)
detect_architecture("__aarch64__" ARM64)
detect_architecture("__PPC64__" PPC64)
endif()
if (NOT DEFINED ARCHITECTURE)
message(FATAL_ERROR "Not supported. Please add needed architecture detection.")
@ -172,6 +173,9 @@ if (ARCH_OPT)
if(MSVC AND NOT MARCH_NATIVE_SUPPORTED)
set(CMAKE_REQUIRED_FLAGS "/arch:${ARCH_OPT}")
add_compile_options(${CMAKE_REQUIRED_FLAGS})
elseif (ARCHITECTURE_PPC64)
set(CMAKE_REQUIRED_FLAGS "-mcpu=${ARCH_OPT}")
add_compile_options(-mcpu=${ARCH_OPT})
else()
set(CMAKE_REQUIRED_FLAGS "-march=${ARCH_OPT}")
add_compile_options(-march=${ARCH_OPT})