diff options
| author | Léo Lam <leo@leolam.fr> | 2021-04-17 22:24:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-17 22:24:52 +0200 |
| commit | e7f68cf850c17673bf413641f7107426fb74a6ea (patch) | |
| tree | 0aaf6a0834caa09297a8f77ee91afa1e8903f13a | |
| parent | d26d1794845cb5e1b29fb083b59b01dc71217a3a (diff) | |
| parent | b2d5eea20c60ea43bc37de3bfd3af0caa2ec14f3 (diff) | |
Merge pull request #9634 from skylersaleh/xcode_strict_aliasing
Build: Fix -fno-strict-aliasing on Xcode builds
| -rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index df97554d3e..dfccece1d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -291,6 +291,9 @@ if(CMAKE_SYSTEM_NAME MATCHES "Darwin") list(APPEND CMAKE_PREFIX_PATH "/usr") endif() + # Prevents Xcode from overriding the -fno-strict-aliasing flag + 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) |
