From dcf106621707c1020e2ef2cfb9bcaf2dde2fdb6e Mon Sep 17 00:00:00 2001 From: exu Date: Sun, 19 May 2024 16:27:46 +0200 Subject: [PATCH] Add makepkg settings as separate file --- .../etc/makepkg.conf.d/performance.conf | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 arch-config/etc/makepkg.conf.d/performance.conf diff --git a/arch-config/etc/makepkg.conf.d/performance.conf b/arch-config/etc/makepkg.conf.d/performance.conf new file mode 100644 index 00000000..a1e3dfeb --- /dev/null +++ b/arch-config/etc/makepkg.conf.d/performance.conf @@ -0,0 +1,18 @@ +#!/hint/bash +# shellcheck disable=2034 + +# build for native architecture +CFLAGS="-march=native -mtune=generic -O2 -pipe -fno-plt -fexceptions \ + -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security \ + -fstack-clash-protection -fcf-protection \ + -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer" + +RUSTFLAGS="-C opt-level=3 -C target-cpu=native" + +# use all cores +MAKEFLAGS="-j$(nproc)" + +# build in RAM +BUILDDIR=/tmp/makepkg + +# vim: set ft=sh ts=2 sw=2 et: