Skip to content

Commit

Permalink
Move to O2 instead of O3: Travis does not have AVX
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesYang007 committed Jun 1, 2020
1 parent a96511e commit 55c4a6b
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 @@ -15,7 +15,7 @@ if (NOT CMAKE_BUILD_TYPE)
# if binary directory ends with "release", use release mode
if (${PROJECT_BINARY_DIR} MATCHES "release$")
set(CMAKE_BUILD_TYPE RELEASE)
add_compile_options(-march=native -O3)
add_compile_options(-march=native -O2)
# otherwise, use debug mode
else()
set(CMAKE_BUILD_TYPE DEBUG)
Expand Down

0 comments on commit 55c4a6b

Please sign in to comment.