summaryrefslogtreecommitdiffstats
path: root/flake.nix
diff options
context:
space:
mode:
authorregnat <rg@regnat.ovh>2020-09-23 16:05:47 +0200
committerregnat <rg@regnat.ovh>2020-09-23 16:10:31 +0200
commit21639b2d179e84805d5ab0949c7bdd74c9e2b7ae (patch)
treeaa7e1b87abbe59da42e101dbc29c71780f3df58f /flake.nix
parent980edd1f3a31eefe297d073f6a7cff099f21eb4a (diff)
Use gold as the linker on Linux
Saves ~7s in the linking phase
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 0304557e8..200417c3e 100644
--- a/flake.nix
+++ b/flake.nix
@@ -58,6 +58,7 @@
configureFlags =
lib.optionals stdenv.isLinux [
"--with-sandbox-shell=${sh}/bin/busybox"
+ "LDFLAGS=-fuse-ld=gold"
];
buildDeps =