[llvm] e545e11 - [gn build] Use LLD as host linker by default on macOS if clang_base_path is set
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 27 06:44:13 PDT 2021
Author: Nico Weber
Date: 2021-10-27T09:44:00-04:00
New Revision: e545e11a9ee428f047833ca48e7e213d831fbad8
URL: https://github.com/llvm/llvm-project/commit/e545e11a9ee428f047833ca48e7e213d831fbad8
DIFF: https://github.com/llvm/llvm-project/commit/e545e11a9ee428f047833ca48e7e213d831fbad8.diff
LOG: [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
Added:
Modified:
llvm/utils/gn/build/toolchain/compiler.gni
Removed:
################################################################################
diff --git a/llvm/utils/gn/build/toolchain/compiler.gni b/llvm/utils/gn/build/toolchain/compiler.gni
index 572fa22774c5d..28efe991bee86 100644
--- a/llvm/utils/gn/build/toolchain/compiler.gni
+++ b/llvm/utils/gn/build/toolchain/compiler.gni
@@ -21,5 +21,5 @@ declare_args() {
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 != ""
}
More information about the llvm-commits
mailing list