From b8c690292696a12de03551723e20d96aaa63b339 Mon Sep 17 00:00:00 2001 From: proledatarian Date: Mon, 30 Jan 2023 14:17:45 +0000 Subject: [PATCH] Update file post-install.sh --- post-install.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/post-install.sh b/post-install.sh index 031a797..7532b84 100644 --- a/post-install.sh +++ b/post-install.sh @@ -16,6 +16,15 @@ git clone https://gitlab.com/dataprolet/arch # Enable multilib repo sudo sed -i "/\[multilib\]/,/Include/"'s/^#//' /etc/pacman.conf +# Enabling AHLP.GO repo + +# Configure compiler +sudo sed -E -i 's/-march=(\S*)/-march=native/' /etc/makepkg.conf +sudo sed -E -i 's/-mtune==(\S*)/-mtune=native/' /etc/makepkg.conf +sudo sed -E -i 's/-O2/-O3/' /etc/makepkg.conf +sudo sed -E -i 's/#RUSTFLAGS=(.*)$/RUSTFLAGS="-C opt-level=2 -C target-cpu=native"/' /etc/makepkg.conf +sudo sed -E -i 's/#MAKEFLAGS=(.*)$/MAKEFLAGS="-j$(nproc)"/' /etc/makepkg.conf + # Stupid workaround for package conflict yes | yay -S pipewire-jack