[PATCH] D112622: [gn build] Use LLD as host linker by default if clang_base_path is set

Nico Weber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 27 06:39:35 PDT 2021


thakis created this revision.
thakis added a reviewer: hans.
thakis requested review of this revision.
Herald added a project: LLVM.

lld/mac should be stable enough to use it as host linker. I've been
using `use_lld=true` in my local args.gn for many months now and it
works fine (and links much faster than ld64).


https://reviews.llvm.org/D112622

Files:
  llvm/utils/gn/build/toolchain/compiler.gni


Index: llvm/utils/gn/build/toolchain/compiler.gni
===================================================================
--- llvm/utils/gn/build/toolchain/compiler.gni
+++ llvm/utils/gn/build/toolchain/compiler.gni
@@ -21,5 +21,5 @@
   is_clang = host_os == "mac" || clang_base_path != ""
 
   # Set this to true to link with LLD instead of the default linker.
-  use_lld = clang_base_path != "" && host_os != "mac"
+  use_lld = clang_base_path != ""
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112622.382649.patch
Type: text/x-patch
Size: 451 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211027/f9bcfb4b/attachment.bin>


More information about the llvm-commits mailing list