diff --git a/CMakeLists.txt b/CMakeLists.txt index c719785..3bfd50b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,7 +24,7 @@ endif () if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") if (EXISTS /usr/bin/mold) message(STATUS "Mold found, using as linker") - add_link_options(-fuse-ld=mold) + add_link_options(-fuse-ld=mold -flto) else() add_link_options(-fuse-ld=lld) endif()