Skip to content

Commit 273fd94

Browse files
committed
added flto to link options
1 parent 427c24f commit 273fd94

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
1717
add_compile_definitions(SPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_DEBUG)
1818
elseif (CMAKE_BUILD_TYPE STREQUAL "Release")
1919
add_compile_options(-O3 -DNDEBUG -Wall -march=native -mtune=native -ffast-math -flto)
20+
add_link_options(-flto)
2021
add_compile_definitions(SPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_OFF)
2122
elseif (CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
2223
add_compile_options(-O2 -g3 -DNDEBUG -Wall -march=native -mtune=native -ffast-math -fno-omit-frame-pointer)

0 commit comments

Comments
 (0)