Skip to content

Commit d6252b2

Browse files
committed
CMake : use -Ofast flag
1 parent 0d8c790 commit d6252b2

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
@@ -12,7 +12,7 @@ endif()
1212

1313
set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wno-unused-variable -Wno-unused-function -Wno-error")
1414
set(CMAKE_CXX_FLAGS_DEBUG "-g")
15-
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
15+
set(CMAKE_CXX_FLAGS_RELEASE "-Ofast")
1616

1717
#add lto
1818
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)

0 commit comments

Comments
 (0)