mirror of
https://github.com/clangen/musikcube.git
synced 2024-12-27 03:14:30 +00:00
Better CPU count detection when choosing build threads.
This commit is contained in:
parent
dc6e779e9f
commit
ab325546ce
@ -12,6 +12,11 @@ fi
|
||||
OS=$(uname)
|
||||
|
||||
JOBS="-j8"
|
||||
if [[ $OS == "Darwin" ]]; then
|
||||
JOBS="-j$(sysctl -n hw.ncpu)"
|
||||
elif nproc &> /dev/null; then
|
||||
JOBS="-j$(nproc)"
|
||||
fi
|
||||
|
||||
FRIENDLY_OS_NAME="linux"
|
||||
if [[ $OS == "Darwin" ]]; then
|
||||
|
@ -41,6 +41,8 @@ LIBDIR="$OUTDIR/lib"
|
||||
JOBS="-j8"
|
||||
if [[ $OS == "Darwin" ]]; then
|
||||
JOBS="-j$(sysctl -n hw.ncpu)"
|
||||
elif nproc &> /dev/null; then
|
||||
JOBS="-j$(nproc)"
|
||||
fi
|
||||
|
||||
OPENSSL_TYPE="linux-${ARCH}"
|
||||
|
Loading…
Reference in New Issue
Block a user