From e991970a58ab3fe74c66e539e8d89b736e827fba Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Tue, 7 Mar 2017 08:00:31 +0000 Subject: Use nproc instead of ncpu The command is more widely available in Linux since it is part of Coreutils. --- build-android/update_external_sources_android.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-android/update_external_sources_android.sh b/build-android/update_external_sources_android.sh index 183ed136..f3f83215 100755 --- a/build-android/update_external_sources_android.sh +++ b/build-android/update_external_sources_android.sh @@ -32,7 +32,7 @@ echo "SPIRV_TOOLS_REVISION=$SPIRV_TOOLS_REVISION" echo "SHADERC_REVISION=$SHADERC_REVISION" if [[ $(uname) == "Linux" ]]; then - cores=$(ncpus || echo 4) + cores="$(nproc || echo 4)" elif [[ $(uname) == "Darwin" ]]; then cores=$(sysctl -n hw.ncpu) fi -- cgit v1.2.3