1
0
Fork 0

Fix: Don't add -mno-sse4 on arm64

pull/7822/head
Owen Rudge 2021-01-07 16:04:01 +00:00
parent 188bf0fbc9
commit bbc96fd37c
1 changed files with 9 additions and 7 deletions

View File

@ -129,6 +129,7 @@ macro(compile_flags)
endif() endif()
if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
if (NOT CMAKE_OSX_ARCHITECTURES STREQUAL "arm64")
include(CheckCXXCompilerFlag) include(CheckCXXCompilerFlag)
check_cxx_compiler_flag("-mno-sse4" NO_SSE4_FOUND) check_cxx_compiler_flag("-mno-sse4" NO_SSE4_FOUND)
@ -139,6 +140,7 @@ macro(compile_flags)
) )
endif() endif()
endif() endif()
endif()
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Intel") elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
add_compile_options( add_compile_options(
-Wall -Wall