multiprocessing.eclass: Support passing custom inf values for getters
authorMichał Górny <mgorny@gentoo.org>
Tue, 13 Dec 2016 09:31:12 +0000 (10:31 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sun, 18 Dec 2016 13:46:46 +0000 (14:46 +0100)
commit83e052c75fcfff084d1cd98ddb914c63926ece64
tree6eeeea7da2417d0c6ac532906b6998f13e4351bc
parentd9cde86b8e01a04b09c3cc7fb328d92428594828
multiprocessing.eclass: Support passing custom inf values for getters

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.
eclass/multiprocessing.eclass
eclass/tests/multiprocessing_makeopts_jobs.sh
eclass/tests/multiprocessing_makeopts_loadavg.sh