Check NPROCESSORS_ONLN in addition to _NPROCESSORS_ONLN

This commit is contained in:
Frank Denis 2018-03-07 10:14:01 +01:00
parent 816cef5de4
commit 7d4976a304
6 changed files with 6 additions and 6 deletions

View File

@ -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 && \

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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