diff options
Diffstat (limited to '')
| -rw-r--r-- | home/cargo.nix (renamed from home/cargo/default.nix) | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/home/cargo/default.nix b/home/cargo.nix index b01ff1a..d05fbe8 100644 --- a/home/cargo/default.nix +++ b/home/cargo.nix @@ -17,6 +17,15 @@ unstable = { gc = true; }; + target = { + x86_64-unknown-linux-gnu = { + linker = "${pkgs.clang}/bin/clang"; + rustflags = [ + "-C" + "link-arg=--ld-path=${pkgs.mold}/bin/mold" + ]; + }; + }; "future-incompat-report" = { frequency = "always"; # when to display a notification about a future incompat report }; |
