by default run with more processes than CPUs, but not much more CPUs (n+1)

This commit is contained in:
Wolfram Schneider 2017-12-15 09:07:16 +00:00
parent 81814185f0
commit c6b8fe8a4c
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=51309

View file

@ -35,8 +35,8 @@
set -e
# by default run two processes per CPU
ncpu2=$(( $(/sbin/sysctl -n hw.ncpu) * 2))
# by default run with more processes than CPUs
ncpu2=$(( $(/sbin/sysctl -n hw.ncpu) + 1))
: ${NO_OBJ=YES}
: ${make_opt=-j${ncpu2}}