From b4b15c89e0c303bb50af95b6bb2ef135fc9ee789 Mon Sep 17 00:00:00 2001 From: Cody Northrop Date: Mon, 14 Nov 2016 15:48:08 -0700 Subject: android: Add default core count in case ncpus not available --- 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 53a5880c..183ed136 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) + cores=$(ncpus || echo 4) elif [[ $(uname) == "Darwin" ]]; then cores=$(sysctl -n hw.ncpu) fi -- cgit v1.2.3