mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-12 23:56:13 +01:00
- fixed indention
- added 'icecream' to config dict
This commit is contained in:
parent
d5ae3ef2b4
commit
8670d82fad
15
osc/build.py
15
osc/build.py
@ -335,19 +335,18 @@ def main(opts, argv):
|
||||
build_root = opts.root
|
||||
if opts.jobs:
|
||||
buildargs.append('--jobs %s' % opts.jobs)
|
||||
else:
|
||||
if config['build-jobs'] > 1:
|
||||
buildargs.append('--jobs %s' % config['build-jobs'])
|
||||
if opts.icecream or 'icecream' in config:
|
||||
elif config['build-jobs'] > 1:
|
||||
buildargs.append('--jobs %s' % config['build-jobs'])
|
||||
if opts.icecream or config['icecream']:
|
||||
if opts.icecream:
|
||||
num = opts.icecream
|
||||
else:
|
||||
num = config['icecream']
|
||||
|
||||
if num > 0:
|
||||
buildargs.append('--icecream %s' % num)
|
||||
xp.append('icecream')
|
||||
xp.append('gcc-c++')
|
||||
if num > 0:
|
||||
buildargs.append('--icecream %s' % num)
|
||||
xp.append('icecream')
|
||||
xp.append('gcc-c++')
|
||||
if opts.ccache:
|
||||
buildargs.append('--ccache')
|
||||
xp.append('ccache')
|
||||
|
@ -75,6 +75,7 @@ DEFAULTS = { 'apiurl': 'https://api.opensuse.org',
|
||||
'build-memory': '',# required for VM builds
|
||||
'build-swap': '', # optional for VM builds
|
||||
'build-jobs': os.sysconf('SC_NPROCESSORS_ONLN'), # compile with N jobs
|
||||
'icecream': '0',
|
||||
|
||||
'debug': '0',
|
||||
'http_debug': '0',
|
||||
|
Loading…
Reference in New Issue
Block a user