From 19d20b73beb56ba926e8f24e32021be11c54b161 Mon Sep 17 00:00:00 2001 From: Danielkot Date: Tue, 5 May 2020 19:00:22 +0000 Subject: [PATCH] fix --- danio_gcc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/danio_gcc.sh b/danio_gcc.sh index b0e5312..57c8d8d 100755 --- a/danio_gcc.sh +++ b/danio_gcc.sh @@ -12,7 +12,7 @@ runit() export PATH="${PREFIX}/bin:${PATH}" export OUT="`pwd`/out" export ARGS="--enable-multilib --enable-multiarch --enable-targets=all --disable-werror" - if command -v nproc --version >/dev/null; then + if command -v nproc >/dev/null; then export nproc="$(( `nproc --all` * 2 ))" elif command -v sysctl >/dev/null; then export nproc="$(( `sysctl -n hw.ncpu` * 2 ))"