diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2023-07-06 22:19:58 -0700 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2023-07-06 22:19:58 -0700 |
commit | b7fff94a821ed2549a961bdb0b67106925d60bf8 (patch) | |
tree | 82339812c8f80145dcf399a7a3ff1dc60c893f98 /etc/makepkg.conf | |
parent | 1e4d365e0bdd0f5fc1e7159b6841f3edf588b050 (diff) |
https://wiki.archlinux.org/title/Makepkg#Building_optimized_binaries
Diffstat (limited to 'etc/makepkg.conf')
-rw-r--r-- | etc/makepkg.conf | 4 |
1 files changed, 2 insertions, 2 deletions
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 |