summaryrefslogtreecommitdiff
path: root/Docs/env.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Docs/env.sh')
-rw-r--r--Docs/env.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Docs/env.sh b/Docs/env.sh
index 7dc9fcaf0..a214672c2 100644
--- a/Docs/env.sh
+++ b/Docs/env.sh
@@ -22,7 +22,7 @@ if [ "x${TARGET_WORKSPACE}" = "x" ]; then
fi
if [ "x${USE_CPUS}" = "x" ]; then
- NCPUS=$(getconf _NPROCESSORS_ONLN 2>/dev/null)
+ NCPUS=$(getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null)
NCPUS="${NCPUS:-1}"
NCPUS=$((NCPUS * 2))
USE_CPUS="-j${NCPUS}"