aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-01-19 07:19:27 +0000
committerBlaž Hrastnik2021-01-19 07:19:27 +0000
commitd5db8929026e644fac83ba976b45b6606f0277d5 (patch)
treef455c9e2678651074b776638198bc89159acefdf
parent7c99ff58fdc4c5217f86e59d2b3ec0df10f79aaa (diff)
nix: Optimize for CPU.
-rw-r--r--shell.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell.nix b/shell.nix
index e0a26045..9c63ab9f 100644
--- a/shell.nix
+++ b/shell.nix
@@ -6,7 +6,7 @@ pkgs.mkShell {
lld_10
# pkgconfig
];
- RUSTFLAGS = "-C link-arg=-fuse-ld=lld";
+ RUSTFLAGS = "-C link-arg=-fuse-ld=lld -C target-cpu=native";
RUST_BACKTRACE = "1";
}