Skip to content

Commit

Permalink
[build] fix lld linker path
Browse files Browse the repository at this point in the history
This appears to be needed for the clang driver to find LLD when using older
clang versions.
  • Loading branch information
fhanau committed Oct 10, 2024
1 parent 1a71de8 commit 91d97b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 91d97b9

Please sign in to comment.