summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Emmanuel Gil Peyrot2016-07-23 17:10:32 +0100
committerGravatar Emmanuel Gil Peyrot2016-07-23 17:10:32 +0100
commite09e6837208a5cda81c0eee233f301433201cb8b (patch)
tree3c5626f34d796c29108a325f44422482aabf4796
parentMerge pull request #1964 from Lectem/sdl2_dll_copy_fix (diff)
downloadyuzu-e09e6837208a5cda81c0eee233f301433201cb8b.tar.gz
yuzu-e09e6837208a5cda81c0eee233f301433201cb8b.tar.xz
yuzu-e09e6837208a5cda81c0eee233f301433201cb8b.zip
Remove the -msse4.1 on ¬MSVC.
This option makes the generated binary crash with an illegal instruction when the target CPU doesn’t support the SSE4.1 extension (see #1968), with no noticeable performance increase compared to a generic build.
-rw-r--r--CMakeLists.txt5
1 files changed, 0 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9a436b981..779eb8e50 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -66,11 +66,6 @@ message(STATUS "Target architecture: ${ARCHITECTURE}")
66if (NOT MSVC) 66if (NOT MSVC)
67 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y -Wno-attributes") 67 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y -Wno-attributes")
68 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") 68 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
69
70 if (ARCHITECTURE_x86_64)
71 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse4.1")
72 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse4.1")
73 endif()
74else() 69else()
75 # Silence "deprecation" warnings 70 # Silence "deprecation" warnings
76 add_definitions(/D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_DEPRECATE /D_SCL_SECURE_NO_WARNINGS) 71 add_definitions(/D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_DEPRECATE /D_SCL_SECURE_NO_WARNINGS)