This commit is contained in:
Daniel
2019-12-23 23:40:45 +01:00
parent f11baf0f57
commit 012ac23a18
+3 -7
View File
@@ -11,18 +11,14 @@ runit()
export PREFIX="`pwd`/rel-bin/${TARGET}"
export PATH="${PREFIX}/bin:${PATH}"
export OUT="`pwd`/out"
if uname -s | grep -q -i "linux"; then
if command -v nproc --version >/dev/null; then
export nproc="$(( `nproc --all` * 2 ))"
elif uname -s | grep -q -i "darwin"; then
elif command -v sysctl >/cev/null; then
export nproc="$(( `sysctl -n hw.ncpu` * 2 ))"
else
if command -v nproc >/dev/null; then
export nproc="$(( `nproc --all` * 2 ))"
else
#domyślnie dwa rdzenie
#domyslnie dwa rdzenie
export nproc="2"
fi
fi
export ARGS="--enable-multilib --enable-multiarch --enable-targets=all --disable-werror"
if [ "${buildnewlib}" -ne "0" ]; then
export EXTRA_ARGS="--with-newlib"