You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sambacha
changed the title
Dramatically reduce macOS x86 compile times for binaries
Feat: use zld for macOS x86 linker to reduce compile times for binaries
Oct 10, 2022
Dramatically reduce macOS x86 compile times for binaries
Describe the feature you would like
Utilize
zld
for linker. macOS has recently introduced dylb improvements, you can find out more here: https://developer.apple.com/videos/play/wwdc2022/110362/?time=729Savings of at least ~23mins
The feature I would like I have already validated. Simply use
zld
in CI to achieve tis.Current compilation time for x86 MacOS
Finished release [optimized] target(s) in 31m 32s
Improved compilation time for x86 MacOS
Finished release [optimized] target(s) in 8m 34s
How to utilize this for CI?
wget https://github.com/michaeleisel/zld/releases/download/1.3.8/zld.zip unzip zld.zip RUSTFLAGS="-Clink-arg=-fuse-ld=$PWD/zld" cargo build --release
Built Artifact
Grab the compiled binary here: https://github.com/sambacha/foundry/releases/tag/rc-macos-x86-zld-lld
Additional Information
rust-lang/rust#39915
rust-lang/compiler-team#510
https://hackmd.io/YJQSj_nLSZWl2sbI84R1qA?view
Additional context
No response
The text was updated successfully, but these errors were encountered: