Faster linking times on Linux using rust-lld
Faster linking times on Linux using rust-lld
rustc will use rust-lld by default on x86_64-unknown-linux-gnu on nightly to significantly reduce linking times.
1
comments
Good. But a lot of us do this already:
[target.x86_64-unknown-linux-gnu] linker = "clang" # for mold rustflags = ["-c", "link-arg=-fuse-ld=/usr/bin/mold"] [target.x86_64-unknown-linux-musl] rustflags = ["-Z", "gcc-ld=lld"]
6 0 Reply