mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
Fix: Don't add -mno-sse4 on arm64
This commit is contained in:
parent
188bf0fbc9
commit
bbc96fd37c
@ -129,14 +129,16 @@ macro(compile_flags)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
|
if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
|
||||||
include(CheckCXXCompilerFlag)
|
if (NOT CMAKE_OSX_ARCHITECTURES STREQUAL "arm64")
|
||||||
check_cxx_compiler_flag("-mno-sse4" NO_SSE4_FOUND)
|
include(CheckCXXCompilerFlag)
|
||||||
|
check_cxx_compiler_flag("-mno-sse4" NO_SSE4_FOUND)
|
||||||
|
|
||||||
if(NO_SSE4_FOUND)
|
if(NO_SSE4_FOUND)
|
||||||
add_compile_options(
|
add_compile_options(
|
||||||
# Don't use SSE4 for general sources to increase compatibility.
|
# Don't use SSE4 for general sources to increase compatibility.
|
||||||
-mno-sse4
|
-mno-sse4
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
|
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
|
||||||
|
Loading…
Reference in New Issue
Block a user