Adds lto as link flag to mold
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2022-05-18 18:18:55 +02:00
parent e355b45fa5
commit c559e60104
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 1 additions and 1 deletions

View File

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