about summary refs log tree commit diff
path: root/users/grfn/system/home/modules/development
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2022-01-04T17·52-0500
committerclbot <clbot@tvl.fyi>2022-01-04T17·53+0000
commitf7235d10e700206d070e9f5e5ebe9c1c6fc5784e (patch)
tree0124890b0efc3da316dd00ef19bb23db743eeeb7 /users/grfn/system/home/modules/development
parent5bc7a1f2548db7100caf82403d351e1b2f52cfed (diff)
feat(grfn/home): Use mold as rust linker r/3515
This is *way* faster, as advertised

Change-Id: Iad452dc3b3b768331d7de0421f768f82e9b76a60
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4785
Reviewed-by: grfn <grfn@gws.fyi>
Autosubmit: grfn <grfn@gws.fyi>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/grfn/system/home/modules/development')
-rw-r--r--users/grfn/system/home/modules/development/rust.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/users/grfn/system/home/modules/development/rust.nix b/users/grfn/system/home/modules/development/rust.nix
index 018b338bff2a..4ae5bc3bcc18 100644
--- a/users/grfn/system/home/modules/development/rust.nix
+++ b/users/grfn/system/home/modules/development/rust.nix
@@ -26,5 +26,9 @@
   home.file.".cargo/config".text = ''
     [build]
     rustc-wrapper = "${pkgs.sccache}/bin/sccache"
+
+    [target.x86_64-unknown-linux-gnu]
+    linker = "clang"
+    rustflags = ["-C", "link-arg=-fuse-ld=${pkgs.mold}/bin/mold"]
   '';
 }