repositories / dotfiles
dotfiles
bugabingas dorkfiles
owned by admin
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"
# slam crates together for the optimizer to munch on
codegen-units = 1
# 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.
rustflags = ["-C", "link-arg=-fuse-ld=mold"]