Adds lto as link flag to mold
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
e355b45fa5
commit
c559e60104
|
@ -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 ()
|
||||
|
|
Loading…
Reference in New Issue