Force LTO for mold
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
f4e2837b92
commit
5a545aaa98
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue