Use one core with the compiler by default (#1114)

This commit is contained in:
Daniel Markstedt 2023-03-02 13:51:22 -08:00 committed by GitHub
parent ddf258db57
commit 3de66af55c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,8 +49,7 @@ echo -e $logo
CONNECT_TYPE="FULLSPEC" CONNECT_TYPE="FULLSPEC"
# clang v11 is the latest distributed by Buster # clang v11 is the latest distributed by Buster
COMPILER="clang++-11" COMPILER="clang++-11"
# Takes half of the CPU cores available, to avoid running out of memory on low spec devices CORES=1
CORES=$(awk 'BEGIN { x = '$(nproc)'; y = 2; print (x / y) }' | numfmt --round=up --format=%.0f)
USER=$(whoami) USER=$(whoami)
BASE=$(dirname "$(readlink -f "${0}")") BASE=$(dirname "$(readlink -f "${0}")")
CPP_PATH="$BASE/cpp" CPP_PATH="$BASE/cpp"