Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Craddock <nzcraddock@gmail.com>2020-04-27 07:10:56 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-04-27 07:14:00 +0300
commit490c32c425e7909b8351932857a448ac953131ac (patch)
tree91fe8bc6b482c6f8aef608be2e417cf3db864420 /CMakeLists.txt
parent13abd3784ad0034b58cde9e15ea96d6397887dfc (diff)
CMake: add WITH_LINKER_LLD option for unix platforms
Can give considerably faster linking, especially for debug builds. This may be enabled by default but needs to be more thoroughly tested.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 521dfdf4f02..9f0ff3d1427 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -475,6 +475,8 @@ endif()
if(CMAKE_COMPILER_IS_GNUCC)
option(WITH_LINKER_GOLD "Use ld.gold linker which is usually faster than ld.bfd" ON)
mark_as_advanced(WITH_LINKER_GOLD)
+ option(WITH_LINKER_LLD "Use ld.lld linker which is usually faster than ld.gold" OFF)
+ mark_as_advanced(WITH_LINKER_LLD)
endif()
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")