mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-12-03 08:01:11 +00:00
Apple M1: Only add x86 compile flags to x86 builds
- Removed -mssse3 flag from arm64 builds - Removed -march=core2 from arm64 builds
This commit is contained in:
parent
bcb3c7d80f
commit
12c439860d
@ -314,9 +314,10 @@ if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||
set(CMAKE_XCODE_ATTRIBUTE_GCC_STRICT_ALIASING NO)
|
||||
|
||||
# Specify target CPUs.
|
||||
check_and_add_flag(HAVE_MSSSE3 -mssse3)
|
||||
check_and_add_flag(HAVE_ARCH_CORE2 -march=core2)
|
||||
|
||||
if(_ARCH_64 AND CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|amd64|AMD64")
|
||||
check_and_add_flag(HAVE_MSSSE3 -mssse3)
|
||||
check_and_add_flag(HAVE_ARCH_CORE2 -march=core2)
|
||||
endif()
|
||||
# Linker flags.
|
||||
# Drop unreachable code and data.
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-dead_strip,-dead_strip_dylibs")
|
||||
|
Loading…
Reference in New Issue
Block a user