mold in rust
This commit is contained in:
parent
5eefa66896
commit
3a56012932
1 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,10 @@ in {
|
||||||
[build]
|
[build]
|
||||||
rustc-wrapper = "${pkgs.sccache}/bin/sccache"
|
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]
|
[profile.rust-analyzer]
|
||||||
inherits = "dev"
|
inherits = "dev"
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Add table
Reference in a new issue