Skip to content

Commit 56016d5

Browse files
committed
Make: Default to -O2
1 parent 5061485 commit 56016d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ endif ()
400400
# Release vs. Debug flags via generator expressions
401401
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
402402
if (CMAKE_BUILD_TYPE STREQUAL "Release" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
403-
target_compile_options(less_slow PRIVATE -O3 -Wno-unused-but-set-variable -falign-functions=32)
403+
target_compile_options(less_slow PRIVATE -O2 -Wno-unused-but-set-variable -falign-functions=32)
404404
endif ()
405405

406406
if (CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")

0 commit comments

Comments
 (0)