From 8c7b5c625d2e03f49aaf60dd39fb674c26a7b08f Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Thu, 13 Dec 2018 16:06:58 +0100 Subject: [PATCH] Force better native compilation for Rust. --- pacman/.config/pacman/makepkg.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/pacman/.config/pacman/makepkg.conf b/pacman/.config/pacman/makepkg.conf index 441dca9..7f7c55a 100644 --- a/pacman/.config/pacman/makepkg.conf +++ b/pacman/.config/pacman/makepkg.conf @@ -1,6 +1,7 @@ # march=native and flto added CFLAGS="-march=native -mtune=native -O2 -pipe -fstack-protector-strong" CXXFLAGS="-march=native -mtune=native -O2 -pipe -fstack-protector-strong" +RUSTFLAGS="-C target_cpu=native" # Do a parallel build. MAKEFLAGS="-j6"