mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-26 04:02:11 +01:00
make iceream configurable in config file
This commit is contained in:
parent
4a18c18d34
commit
68dd680cf3
14
osc/build.py
14
osc/build.py
@ -339,10 +339,16 @@ def main(opts, argv):
|
||||
else:
|
||||
if config['build-jobs'] > 1:
|
||||
buildargs.append('--jobs %s' % config['build-jobs'])
|
||||
if opts.icecream:
|
||||
buildargs.append('--icecream %s' % opts.icecream)
|
||||
xp.append('icecream')
|
||||
xp.append('gcc-c++')
|
||||
if opts.icecream or 'icecream' in config:
|
||||
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 opts.ccache:
|
||||
buildargs.append('--ccache')
|
||||
xp.append('ccache')
|
||||
|
Loading…
x
Reference in New Issue
Block a user