mirror of https://github.com/PCSX2/pcsx2.git
CMake: Fix building x86 on Apple Silicon
This commit is contained in:
parent
0784b5930b
commit
8e5fc236ca
|
@ -92,9 +92,12 @@ if("${CMAKE_HOST_SYSTEM_PROCESSOR}" STREQUAL "x86_64" OR "${CMAKE_HOST_SYSTEM_PR
|
|||
if (DISABLE_ADVANCE_SIMD)
|
||||
add_compile_options("-msse" "-msse2" "-msse4.1" "-mfxsr")
|
||||
else()
|
||||
# Can't use march=native on Apple Silicon.
|
||||
if(NOT APPLE OR "${CMAKE_HOST_SYSTEM_PROCESSOR}" STREQUAL "x86_64")
|
||||
add_compile_options("-march=native")
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
else()
|
||||
message(FATAL_ERROR "Unsupported architecture: ${CMAKE_HOST_SYSTEM_PROCESSOR}")
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue