repositories / dotfiles
dotfiles
bugabingas dorkfiles
owned by bugabinga
cargo/config.toml
Raw[build]
# since we only care for builds for our own machine, let's benefit from thise juicy modern cpu features
rustflags = ["-C", "target-cpu=native"]
# jobs = 8
# let's have some fun with "omgz performance rice dat cake"
# aaand we get out of memory errors when building nu...
[profile.release]
# link time optimization is slow, but allows inter-crate analysis
lto = "fat"
# use the fastest known linker out there (2022)
[target.x86_64-unknown-linux-gnu]
# not sure why that is necessary, but without it, rustc seems to pass wrong arguments to mold.
linker = "clang"
rustflags = ["-C", "link-arg=--ld-path=mold"]