by default run with more processes than CPUs, but not much more CPUs (n+1)
This commit is contained in:
parent
81814185f0
commit
c6b8fe8a4c
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=51309
1 changed files with 2 additions and 2 deletions
|
@ -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}}
|
||||
|
|
Loading…
Reference in a new issue