diff options
author | Ciro Santilli <ciro.santilli@gmail.com> | 2017-03-07 08:00:31 +0000 |
---|---|---|
committer | Tobin Ehlis <tobine@google.com> | 2017-03-07 17:06:26 -0800 |
commit | 918b84fbbc1fdd7ec1c279d838c19405d34e1d53 (patch) | |
tree | 683ff47824c2ac67d0a0324de807e7333356b9d2 /build-android | |
parent | e67eb5e77abd5aa73c1ac12c0267fdb59129f45d (diff) |
Use nproc instead of ncpu
The command is more widely available in Linux since it is part of Coreutils.
Diffstat (limited to 'build-android')
-rwxr-xr-x | build-android/update_external_sources_android.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |