diff --git a/CMakeLists.txt b/CMakeLists.txt index fbae81a..56fa36c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,7 +54,7 @@ endif (SHARED) 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 ()