Skip to content

Commit 385b77b

Browse files
committed
[build] Build using lld 20 on macOS
lld20 introduces a symbol string deduplication pass, reducing binary sizes on macOS (llvm/llvm-project#123874). For debug binaries with linker optimizations turned on, binary size improves by 930KB to 235.4MB, gains for release binaries should be similar. Run `brew update` on CI to make this version available.
1 parent b37584a commit 385b77b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ jobs:
124124
run: |
125125
# Install lld and link it to /usr/local/bin. We overwrite any existing link, which may
126126
# exist from an older pre-installed LLVM version on the runner image.
127+
brew update
127128
brew install lld
128129
sudo ln -s -f $(brew --prefix lld)/bin/ld64.lld /usr/local/bin/ld64.lld
129130
# Enable lld identical code folding to significantly reduce binary size.

0 commit comments

Comments
 (0)