mirror of
https://github.com/libretro/libretro-super
synced 2025-03-30 13:20:22 +00:00
nproc is Linux-specific, but you can do the same with sysctl on a Mac
This commit is contained in:
parent
7f6801cb1f
commit
4fb98b4c22
@ -171,8 +171,11 @@ case "$platform" in
|
||||
config_log_build_host
|
||||
|
||||
if [ -z "$JOBS" ]; then
|
||||
# nproc is generally Linux-specific.
|
||||
if command -v nproc >/dev/null; then
|
||||
JOBS="$(nproc)"
|
||||
elif [ "$pltaform" = "osx" ] && command -v sysctl >/dev/null; then
|
||||
JOBS="$(sysctl -n hw.physicalcpu)"
|
||||
else
|
||||
JOBS=1
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user