From d86034af065a7f8f0b6eee7035e8bcad6186fbd6 Mon Sep 17 00:00:00 2001 From: François Revol Date: Fri, 27 Dec 2013 19:37:42 +0100 Subject: env.sh: Account for BSD variant getconf NPROCESSORS_ONLN Haiku now provides the BSD getconf, so should work as well. One might want to handle Solaris too some day... cf. https://gist.github.com/jj1bdx/5746298 --- Docs/env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}" -- cgit v1.2.3