summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* multiprocessing.eclass: add tests for float valuesMike Gilbert2017-09-141-1/+3
| | | | Bug: https://bugs.gentoo.org/630626
* Drop $Id$ per council decision in bug #611234.Robin H. Johnson2017-02-281-1/+0
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* multiprocess.eclass: makeopts_{jobs,loadavg}: fix implicit handling of ↵Mike Frysinger2017-02-091-3/+8
| | | | | | | | $MAKEOPTS #608242 We missed quoting on ${MAKEOPTS} to set it as the first arg which meant we might load invalid values into the second arg which is the "infinite" scenario.
* multiprocessing.eclass: Support passing custom inf values for gettersMichał Górny2016-12-181-1/+4
| | | | | | | | Support passing custom values for 'infinity' in makeopts_jobs() and makeopts_loadavg(). This can be used e.g. when a build system does not support --loadavg, and therefore '--jobs 999' would most likely be a really bad idea. Combined with get_nproc(), this can be used to provide a sane replacement instead.
* multiprocessing.eclass: Fix handling multiple short options (e.g. -kj)Michał Górny2016-12-181-0/+3
| | | | | | | | Improve the regular expressions to handle parameters consisting of multiple short options (such as -kj). It should be noted that the code is not perfect but should handle all common (valid) cases; it could e.g. incorrectly process a short option followed by string arg such as '-Wfoo.j' although having this in MAKEOPTS is extremely unlikely.
* multiprocessing.eclass: makeopts_loadavg: various fixes #543116Mike Frysinger2015-11-241-0/+36
- Add support for --max-load option - Fix default load value if not specified (999) - Fix trailing flag consumption so we don't leave garbage behind - Add tests!