From 018c064180d6c51b1cc5af8efdb098cd8bfcf6b1 Mon Sep 17 00:00:00 2001 From: IoIxD <30945097+IoIxD@users.noreply.github.com> Date: Fri, 2 Aug 2024 09:55:09 -0700 Subject: [PATCH] "Change BUILD_JOBS=8" to match the threads on the computer itself. (#264) Now works for macOS and Linux. * Update build-toolchain.bash --- build-toolchain.bash | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/build-toolchain.bash b/build-toolchain.bash index e23ad67406..cc2a8c5685 100755 --- a/build-toolchain.bash +++ b/build-toolchain.bash @@ -23,10 +23,7 @@ SRC=$(cd `dirname $0` && pwd -P) DEFAULT_PREFIX=`pwd -P`/toolchain/ PREFIX=$DEFAULT_PREFIX BINUTILS=`pwd -P`/binutils-build -BUILD_JOBS=8 -if [ $(uname) == "Linux" ]; then - BUILD_JOBS=$(grep processor /proc/cpuinfo | wc -l) -fi +BUILD_JOBS=$(nproc || sysctl -n hw.physicalcpu) ##################### Prerequisites check