mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-03 10:49:58 +00:00
"Change BUILD_JOBS=8" to match the threads on the computer itself. (#264)
Now works for macOS and Linux. * Update build-toolchain.bash
This commit is contained in:
parent
929acbb3c8
commit
018c064180
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user