From 05b9d4c2afda1b77a0e69b21781ce714e80f9745 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Mon, 18 Mar 2024 18:49:10 +0100 Subject: [PATCH] Enable LLVM Linker to reduce link time --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4d07da03201b..1b39709c04e3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -135,6 +135,9 @@ elseif(UNIX) "${CMAKE_CXX_FLAGS_DEBUG} ${CXXFLAGS} -O0 -g1 -DDEBUG" ) set(DPNP_LDFLAGS "-z,noexecstack,-z,relro,-z,now") + + # Enable LLVM Linker to reduce link time + add_link_options("-fuse-ld=lld") else() message(FATAL_ERROR "Unsupported system.") endif()