16
submitted 4 months ago by EmDash@lemmygrad.ml to c/rust@lemmy.ml

rustc will use rust-lld by default on x86_64-unknown-linux-gnu on nightly to significantly reduce linking times.

top 1 comments
sorted by: hot top controversial new old
[-] BB_C@programming.dev 6 points 4 months ago

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"]
this post was submitted on 17 May 2024
16 points (100.0% liked)

Rust Programming

7734 readers
41 users here now

founded 5 years ago
MODERATORS