[gn build] Use LLD as host linker by default on macOS if clang_base_path is set

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).

Differential Revision: https://reviews.llvm.org/D112622
This commit is contained in:
Nico Weber 2021-10-27 09:37:45 -04:00
parent 99f5f0a2b7
commit e545e11a9e
1 changed files with 1 additions and 1 deletions

View File

@ -21,5 +21,5 @@ declare_args() {
is_clang = host_os == "mac" || clang_base_path != "" is_clang = host_os == "mac" || clang_base_path != ""
# Set this to true to link with LLD instead of the default linker. # 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 != ""
} }