diff options
author | François Revol <revol@free.fr> | 2013-12-27 19:37:42 +0100 |
---|---|---|
committer | François Revol <revol@free.fr> | 2013-12-27 20:18:31 +0100 |
commit | d86034af065a7f8f0b6eee7035e8bcad6186fbd6 (patch) | |
tree | 55f5d082c293257db167e229c7b500f0f35c8879 | |
parent | 1ecdc551518e4373cfd76181b17f2ead4d9ebd30 (diff) | |
download | netsurf-d86034af065a7f8f0b6eee7035e8bcad6186fbd6.tar.gz netsurf-d86034af065a7f8f0b6eee7035e8bcad6186fbd6.tar.bz2 |
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
-rw-r--r-- | Docs/env.sh | 2 |
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}" |