Skip to content

Commit

Permalink
Compile -O2 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
sunqm committed Jun 4, 2021
1 parent 369b934 commit 1c2452e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if(BUILD_MARCH_NATIVE)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native -O2")
else()
# This appears to be the lowest version that compiles
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse3")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse3 -O2")
endif()
if ("${CMAKE_C_COMPILER_ID}" STREQUAL "Intel")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -unroll-aggressive -ipo ")
Expand Down

0 comments on commit 1c2452e

Please sign in to comment.