EmDash@lemmygrad.ml to Rust Programming@lemmy.mlEnglish · 6 months agoFaster linking times on Linux using rust-lldlemmygrad.mlimagemessage-square1fedilinkarrow-up115arrow-down10file-text
arrow-up115arrow-down1imageFaster linking times on Linux using rust-lldlemmygrad.mlEmDash@lemmygrad.ml to Rust Programming@lemmy.mlEnglish · 6 months agomessage-square1fedilinkfile-text
rustc will use rust-lld by default on x86_64-unknown-linux-gnu on nightly to significantly reduce linking times.
minus-squareBB_C@programming.devlinkfedilinkarrow-up6·6 months agoGood. 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"]
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"]