mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-24 17:16:12 +01:00
Merge pull request #138 from k0da/threads
Pass threads option to obs-build
This commit is contained in:
commit
e610cb569a
@ -444,6 +444,8 @@ def main(apiurl, opts, argv):
|
|||||||
build_root = opts.root
|
build_root = opts.root
|
||||||
if opts.target:
|
if opts.target:
|
||||||
buildargs.append('--target=%s' % opts.target)
|
buildargs.append('--target=%s' % opts.target)
|
||||||
|
if opts.threads:
|
||||||
|
buildargs.append('--threads=%s' % opts.threads)
|
||||||
if opts.jobs:
|
if opts.jobs:
|
||||||
buildargs.append('--jobs=%s' % opts.jobs)
|
buildargs.append('--jobs=%s' % opts.jobs)
|
||||||
elif config['build-jobs'] > 1:
|
elif config['build-jobs'] > 1:
|
||||||
|
@ -5527,6 +5527,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
help='Build in specified directory')
|
help='Build in specified directory')
|
||||||
@cmdln.option('-j', '--jobs', metavar='N',
|
@cmdln.option('-j', '--jobs', metavar='N',
|
||||||
help='Compile with N jobs')
|
help='Compile with N jobs')
|
||||||
|
@cmdln.option('-t', '--threads', metavar='N',
|
||||||
|
help='Compile with N threads')
|
||||||
@cmdln.option('--icecream', metavar='N',
|
@cmdln.option('--icecream', metavar='N',
|
||||||
help='use N parallel build jobs with icecream')
|
help='use N parallel build jobs with icecream')
|
||||||
@cmdln.option('--ccache', action='store_true',
|
@cmdln.option('--ccache', action='store_true',
|
||||||
|
Loading…
Reference in New Issue
Block a user