From b7fff94a821ed2549a961bdb0b67106925d60bf8 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Thu, 6 Jul 2023 22:19:58 -0700 Subject: https://wiki.archlinux.org/title/Makepkg#Building_optimized_binaries --- etc/makepkg.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc') diff --git a/etc/makepkg.conf b/etc/makepkg.conf index f270d8ed..ebd64ce0 100644 --- a/etc/makepkg.conf +++ b/etc/makepkg.conf @@ -38,13 +38,13 @@ CHOST="x86_64-pc-linux-gnu" #-- Compiler and Linker Flags #CPPFLAGS="" -CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \ +CFLAGS="-march=native -mtune=generic -O2 -pipe -fno-plt -fexceptions \ -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \ -fstack-clash-protection -fcf-protection" CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS" LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" LTOFLAGS="-flto=auto" -#RUSTFLAGS="-C opt-level=2" +RUSTFLAGS="-C opt-level=2 -C target-cpu=native" #-- Make Flags: change this for DistCC/SMP systems #MAKEFLAGS="-j2" #-- Debugging flags -- cgit v1.2.3-70-g09d2