Use LLD as linker when using clang.
continuous-integration/drone/push Build is passing Details

Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
Deukhoofd 2020-09-21 12:51:45 +02:00
parent a5d7db2077
commit 5b10dac514
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 4 additions and 0 deletions

View File

@ -33,6 +33,10 @@ if (SHARED)
set(LIBTYPE SHARED) set(LIBTYPE SHARED)
endif (SHARED) endif (SHARED)
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
add_link_options(-fuse-ld=lld)
endif ()
if (LEVEL_SIZE STREQUAL "8") if (LEVEL_SIZE STREQUAL "8")
add_definitions(-DLEVEL_U8) add_definitions(-DLEVEL_U8)
message(STATUS "Using level size of 8") message(STATUS "Using level size of 8")