EmDash@lemmygrad.ml to Rust Programming@lemmy.mlEnglish · 3 months agoFaster linking times on Linux using rust-lldlemmygrad.mlimagemessage-square1fedilinkarrow-up11arrow-down10file-text
arrow-up11arrow-down1imageFaster linking times on Linux using rust-lldlemmygrad.mlEmDash@lemmygrad.ml to Rust Programming@lemmy.mlEnglish · 3 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-up0·3 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"]