Check NPROCESSORS_ONLN in addition to _NPROCESSORS_ONLN
This commit is contained in:
parent
816cef5de4
commit
7d4976a304
@ -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 && \
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user