Automatically determine number of threads to use in wally-tool-chain-install

This commit is contained in:
Jordan Carlin 2024-07-23 22:57:53 -07:00
parent e6b3257862
commit 676c6b88a0
No known key found for this signature in database

View File

@ -29,11 +29,8 @@
## and limitations under the License.
################################################################################################
# MODIFY FOR YOUR MACHINE
# Increasing NUM_THREADS will speed up parallel compilation of the tools
#NUM_THREADS=2 # for low memory machines > 16GiB
NUM_THREADS=8 # for >= 32GiB
#NUM_THREADS=16 # for >= 64GiB
NUM_THREADS=$(nproc --ignore 1) # One less than the total number of threads
# Colors
BOLD='\033[1m'