Skip to content

Commit

Permalink
Linux build: Autodetect number of threads (#2416)
Browse files Browse the repository at this point in the history
Closes #2412
  • Loading branch information
morevnaproject committed Nov 16, 2021
1 parent 2443e86 commit d83dfab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion autobuild/build.sh
Expand Up @@ -51,7 +51,12 @@ if [ -z "$PREFIX" ]; then
PREFIX=`pwd`/build
fi

MAKE_THREADS=2 #count of threads for make
#count of threads for make
if ( which nproc > /dev/null ); then
MAKE_THREADS=`nproc`
else
MAKE_THREADS=2
fi

# Allow overriding PREFIX and other settings
if [ -f "./build.conf" ] ; then
Expand Down

0 comments on commit d83dfab

Please sign in to comment.