Browse Source

Merge pull request #665 from ranisalt/master

Use native optimizations instead of hardcoded defaults
Konrad Kuśnierz 5 years ago
parent
commit
34e2fa1d49
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/framework/CMakeLists.txt

+ 1
- 1
src/framework/CMakeLists.txt View File

@@ -170,7 +170,7 @@ set(CMAKE_CXX_FLAGS_COMPILESPEED      "-O0")
170 170
 set(CMAKE_CXX_FLAGS_DEBUG             "-O0 -g")
171 171
 set(CMAKE_CXX_FLAGS_RELWITHDEBINFO    "-O1 -g -fno-omit-frame-pointer")
172 172
 set(CMAKE_CXX_FLAGS_RELEASE           "-O2")
173
-set(CMAKE_CXX_FLAGS_PERFORMANCE       "-Ofast -mmmx -msse -msse2")
173
+set(CMAKE_CXX_FLAGS_PERFORMANCE       "-Ofast -march=native")
174 174
 
175 175
 if(USE_LTO)
176 176
     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fwhole-program -flto")

Loading…
Cancel
Save