Skip to content

Commit

Permalink
Use 1 compiler thread per 450MB RAM
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmark committed Oct 7, 2023
1 parent 10f59af commit 6c5b4db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion easyinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ echo -e $logo
CONNECT_TYPE="FULLSPEC"
# clang v11 is the latest distributed by Buster
COMPILER="clang++-11"
CORES=1
MEM=$(grep MemTotal /proc/meminfo | awk '{print $2}')
CORES=`expr $MEM / 450000`
[ $CORES -gt $(nproc) ] && CORES=$(nproc)
USER=$(whoami)
BASE=$(dirname "$(readlink -f "${0}")")
CPP_PATH="$BASE/cpp"
Expand Down

0 comments on commit 6c5b4db

Please sign in to comment.