Force LTO for mold
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2022-05-18 18:26:07 +02:00
parent f4e2837b92
commit 5a545aaa98
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 1 additions and 1 deletions

View File

@ -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()