scons-utils.eclass: Use nproc when --jobs is used without an argument
authorMichał Górny <mgorny@gentoo.org>
Fri, 1 Jan 2016 15:40:34 +0000 (16:40 +0100)
committerMichał Górny <mgorny@gentoo.org>
Fri, 8 Jan 2016 05:14:36 +0000 (06:14 +0100)
commitf76b96e65d19fe90d0b8fec5b8f41f27cb2401c3
tree8fb99224ff81bd4ff80b9d1b9a5be78192e01cd0
parent35777b5d9a7ddcbcd8ff9b3b2008fce82501ae7c
scons-utils.eclass: Use nproc when --jobs is used without an argument

Try to guess the number of processors when --jobs is passed without
an argument. We can't use a high number equivalent to GNU make behavior
(no limit) since SCons does not have an equivalent of --load-avg option.
Still, this is better than assuming some random, fixed number.
eclass/scons-utils.eclass
eclass/tests/scons-utils.sh