commit 75763668cf25b67ea068030b30e8060839ef984f
parent 198a179792e328d722d460590a367719ddbfa59a
Author: Luke Smith <luke@lukesmith.xyz>
Date: Sat, 12 Jan 2019 19:43:16 -0500
detect and use cores
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/larbs.sh b/larbs.sh
@@ -177,6 +177,9 @@ newperms "%wheel ALL=(ALL) NOPASSWD: ALL"
# Make pacman and yay colorful because why not.
sed -i "s/^#Color/Color/g" /etc/pacman.conf
+# Use all cores for compilation.
+sed -i "s/-j2/-j$(nproc)/;s/^#MAKEFLAGS/MAKEFLAGS/" /etc/makepkg.conf
+
manualinstall $aurhelper || error "Failed to install AUR helper."
# The command that does all the installing. Reads the progs.csv file and