Browse Source

Use -O2 in release build

Eduardo Bart 6 years ago
parent
commit
f6fb785cea
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/framework/CMakeLists.txt

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

@@ -169,7 +169,7 @@ set(CMAKE_CXX_FLAGS                   "${CMAKE_CXX_FLAGS} ${WARNS_FLAGS} ${ARCH_
169 169
 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
-set(CMAKE_CXX_FLAGS_RELEASE           "-Os")
172
+set(CMAKE_CXX_FLAGS_RELEASE           "-O2")
173 173
 set(CMAKE_CXX_FLAGS_PERFORMANCE       "-Ofast -mmmx -msse -msse2")
174 174
 
175 175
 if(USE_LTO)

Loading…
Cancel
Save