From d5db8929026e644fac83ba976b45b6606f0277d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Tue, 19 Jan 2021 16:19:27 +0900 Subject: [PATCH] nix: Optimize for CPU. --- shell.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell.nix b/shell.nix index e0a260456..9c63ab9f6 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"; }