mold in rust

This commit is contained in:
Vivian 2024-03-19 10:27:04 +01:00
parent 5eefa66896
commit 3a56012932

View file

@ -15,6 +15,10 @@ in {
[build]
rustc-wrapper = "${pkgs.sccache}/bin/sccache"
[target.'cfg(not(target_arch = "mips"))']
linker = "${pkgs.clang}/bin/clang"
rustflags = ["-C", "link-arg=-fuse-ld=${pkgs.mold}/bin/mold"]
[profile.rust-analyzer]
inherits = "dev"
'';