Use $(nproc) as default for $TERMUX_MAKE_PROCESSES

This commit is contained in:
Fredrik Fornwall 2017-05-04 22:21:52 +02:00
parent 65394feebc
commit fe5862ce89

View File

@ -178,7 +178,7 @@ termux_step_handle_arguments() {
termux_step_setup_variables() {
: "${ANDROID_HOME:="${HOME}/lib/android-sdk"}"
: "${NDK:="${HOME}/lib/android-ndk"}"
: "${TERMUX_MAKE_PROCESSES:="4"}"
: "${TERMUX_MAKE_PROCESSES:="$(nproc)"}"
: "${TERMUX_TOPDIR:="$HOME/.termux-build"}"
: "${TERMUX_ARCH:="aarch64"}" # arm, aarch64, i686 or x86_64.
: "${TERMUX_PREFIX:="/data/data/com.termux/files/usr"}"