From 91d97b919157fe536fb221c91f89c7c561e99f00 Mon Sep 17 00:00:00 2001 From: Felix Hanau Date: Thu, 10 Oct 2024 15:19:45 -0400 Subject: [PATCH] [build] fix lld linker path This appears to be needed for the clang driver to find LLD when using older clang versions. --- .bazelrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bazelrc b/.bazelrc index f3b086bf580..f5b40298027 100644 --- a/.bazelrc +++ b/.bazelrc @@ -320,7 +320,7 @@ build:release_macos --linkopt="-Wl,-no_function_starts" # We could use Xcode 16's -Wl,-deduplicate option instead, but LLD's ICF appears to be superior. # We also want to enable ICF for Linux, but there it causes warnings when dynamically linking with # libc++. -build:macos_lld --linkopt="-fuse-ld=/opt/homebrew/bin/ld64.lld" +build:macos_lld -fuse-ld=lld --ld-path=ld64.lld build:macos_lld_icf --config=macos_lld build:macos_lld_icf --linkopt="-Wl,--icf=safe"