cue: support PARALLEL_MAKE to configure number of make jobs

fixes #46
This commit is contained in:
Ralph Lange
2020-06-15 11:07:50 +02:00
parent 3931ff04fc
commit 9c89437dac
2 changed files with 9 additions and 2 deletions

View File

@@ -245,7 +245,10 @@ builds to higher verbosity.
For debugging on your local machine, you may set `CACHEDIR` to change the
location for the dependency builds. [default is `$HOME/.cache`]
Service specific debugging options are described in the README files
Set `PARALLEL_MAKE` to the number of parallel make jobs that you want your
build to use. [default is the number of CPUs on the runner]
Service specific options are described in the README files
in the service specific subdirectories:
- [Travis-CI README](travis/README.md)

6
cue.py
View File

@@ -75,6 +75,10 @@ def detect_context():
if 'TEST' in os.environ and os.environ['TEST'].lower() == 'no':
ci['test'] = False
ci['parallel_make'] = 2
if 'PARALLEL_MAKE' in os.environ:
ci['parallel_make'] = os.environ['PARALLEL_MAKE']
logger.debug('Detected a build hosted on %s, using %s on %s (%s) configured as %s (test: %s)',
ci['service'], ci['compiler'], ci['os'], ci['platform'], ci['configuration'], ci['test'])
@@ -341,7 +345,7 @@ def call_git(args, **kws):
def call_make(args=[], **kws):
place = kws.get('cwd', os.getcwd())
parallel = kws.pop('parallel', 2)
parallel = kws.pop('parallel', ci['parallel_make'])
silent = kws.pop('silent', False)
use_extra = kws.pop('use_extra', False)
# no parallel make for Base 3.14