diff options
author | Michał Górny <mgorny@gentoo.org> | 2016-01-01 16:40:34 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2016-01-08 06:14:36 +0100 |
commit | f76b96e65d19fe90d0b8fec5b8f41f27cb2401c3 (patch) | |
tree | 8fb99224ff81bd4ff80b9d1b9a5be78192e01cd0 /eclass/tests | |
parent | scons-utils.eclass: _scons_clean_makeopts, clean up and simplify (diff) | |
download | gentoo-f76b96e65d19fe90d0b8fec5b8f41f27cb2401c3.tar.gz gentoo-f76b96e65d19fe90d0b8fec5b8f41f27cb2401c3.tar.bz2 gentoo-f76b96e65d19fe90d0b8fec5b8f41f27cb2401c3.zip |
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.
Diffstat (limited to 'eclass/tests')
-rwxr-xr-x | eclass/tests/scons-utils.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/tests/scons-utils.sh b/eclass/tests/scons-utils.sh index 6355c54517db..fcb5125bdb1c 100755 --- a/eclass/tests/scons-utils.sh +++ b/eclass/tests/scons-utils.sh @@ -28,7 +28,7 @@ test-scons_clean_makeopts() { } # jobcount expected for non-specified state -jc=5 +jc=$(_scons_get_default_jobs) # failed test counter failed=0 |