Skip to content

Commit

Permalink
Check NPROCESSORS_ONLN in addition to _NPROCESSORS_ONLN
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Mar 7, 2018
1 parent 816cef5 commit 7d4976a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist-build/android-build.sh
Expand Up @@ -84,7 +84,7 @@ if [ "$NDK_PLATFORM" != "$NDK_PLATFORM_COMPAT" ]; then
fi


NPROCESSORS=$(getconf _NPROCESSORS_ONLN 2>/dev/null)
NPROCESSORS=$(getconf NPROCESSORS_ONLN 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null)
PROCESSORS=${NPROCESSORS:-3}

make clean && \
Expand Down
2 changes: 1 addition & 1 deletion dist-build/ios.sh
Expand Up @@ -45,7 +45,7 @@ fi
--prefix="$SIMULATOR32_PREFIX" || exit 1


NPROCESSORS=$(getconf _NPROCESSORS_ONLN 2>/dev/null)
NPROCESSORS=$(getconf NPROCESSORS_ONLN 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null)
PROCESSORS=${NPROCESSORS:-3}

make -j${PROCESSORS} install || exit 1
Expand Down
2 changes: 1 addition & 1 deletion dist-build/nativeclient-pnacl.sh
Expand Up @@ -31,7 +31,7 @@ fi
--prefix="$PREFIX" || exit 1


NPROCESSORS=$(getconf _NPROCESSORS_ONLN 2>/dev/null)
NPROCESSORS=$(getconf NPROCESSORS_ONLN 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null)
PROCESSORS=${NPROCESSORS:-3}

make -j${PROCESSORS} check && make -j${PROCESSORS} install || exit 1
2 changes: 1 addition & 1 deletion dist-build/nativeclient-x86.sh
Expand Up @@ -23,7 +23,7 @@ fi
--disable-ssp --without-pthreads \
--prefix="$PREFIX" || exit 1

NPROCESSORS=$(getconf _NPROCESSORS_ONLN 2>/dev/null)
NPROCESSORS=$(getconf NPROCESSORS_ONLN 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null)
PROCESSORS=${NPROCESSORS:-3}

make -j${PROCESSORS} check && make -j${PROCESSORS} install || exit 1
2 changes: 1 addition & 1 deletion dist-build/nativeclient-x86_64.sh
Expand Up @@ -23,7 +23,7 @@ fi
--prefix="$PREFIX" || exit 1


NPROCESSORS=$(getconf _NPROCESSORS_ONLN 2>/dev/null)
NPROCESSORS=$(getconf NPROCESSORS_ONLN 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null)
PROCESSORS=${NPROCESSORS:-3}

make -j${PROCESSORS} check && make -j${PROCESSORS} install || exit 1
2 changes: 1 addition & 1 deletion dist-build/osx.sh
Expand Up @@ -21,7 +21,7 @@ fi
--prefix="$PREFIX" || exit 1


NPROCESSORS=$(getconf _NPROCESSORS_ONLN 2>/dev/null)
NPROCESSORS=$(getconf NPROCESSORS_ONLN 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null)
PROCESSORS=${NPROCESSORS:-3}

make -j${PROCESSORS} check && make -j${PROCESSORS} install || exit 1
Expand Down

0 comments on commit 7d4976a

Please sign in to comment.