CMake: add WITH_LINKER_LLD option for unix platforms
[blender-staging.git] / CMakeLists.txt
index 521dfdf4f02dddc760304f237a3779dc27b4d45c..9f0ff3d1427e028c952f590e6334b35b2b9a16aa 100644 (file)
@@ -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")