mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Merge pull request #9634 from skylersaleh/xcode_strict_aliasing
Build: Fix -fno-strict-aliasing on Xcode builds
This commit is contained in:
@ -291,6 +291,9 @@ if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
|||||||
list(APPEND CMAKE_PREFIX_PATH "/usr")
|
list(APPEND CMAKE_PREFIX_PATH "/usr")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Prevents Xcode from overriding the -fno-strict-aliasing flag
|
||||||
|
set(CMAKE_XCODE_ATTRIBUTE_GCC_STRICT_ALIASING NO)
|
||||||
|
|
||||||
# Specify target CPUs.
|
# Specify target CPUs.
|
||||||
check_and_add_flag(HAVE_MSSSE3 -mssse3)
|
check_and_add_flag(HAVE_MSSSE3 -mssse3)
|
||||||
check_and_add_flag(HAVE_ARCH_CORE2 -march=core2)
|
check_and_add_flag(HAVE_ARCH_CORE2 -march=core2)
|
||||||
|
Reference in New Issue
Block a user