From 75763668cf25b67ea068030b30e8060839ef984f Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sat, 12 Jan 2019 19:43:16 -0500 Subject: [PATCH] detect and use cores --- larbs.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/larbs.sh b/larbs.sh index dc27cfe..3cf059e 100644 --- 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