From 5b10dac514dc40e1d8bb9ae511caf9e2706b4f75 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Mon, 21 Sep 2020 12:51:45 +0200 Subject: [PATCH] Use LLD as linker when using clang. Signed-off-by: Deukhoofd --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7198eb0..6e8cc68 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,6 +33,10 @@ if (SHARED) set(LIBTYPE SHARED) endif (SHARED) +if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") + add_link_options(-fuse-ld=lld) +endif () + if (LEVEL_SIZE STREQUAL "8") add_definitions(-DLEVEL_U8) message(STATUS "Using level size of 8")