diff --git a/common/hm-modules/rust.nix b/common/hm-modules/rust.nix index f489bd31..5a56c65f 100644 --- a/common/hm-modules/rust.nix +++ b/common/hm-modules/rust.nix @@ -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" '';