mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-03 01:56:17 +01:00
Merge pull request #793 from sjamgade/ccache_path
add option pkg-ccache to be passed to build-cmd
This commit is contained in:
commit
3967133022
@ -621,6 +621,9 @@ def main(apiurl, opts, argv):
|
||||
if opts.ccache or config['ccache']:
|
||||
buildargs.append('--ccache')
|
||||
xp.append('ccache')
|
||||
if opts.pkg_ccache:
|
||||
buildargs.append('--pkg-ccache=%s' % opts.pkg_ccache)
|
||||
xp.append('ccache')
|
||||
if opts.linksources:
|
||||
buildargs.append('--linksources')
|
||||
if opts.baselibs:
|
||||
|
@ -6324,6 +6324,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
help='use N parallel build jobs with icecream')
|
||||
@cmdln.option('--ccache', action='store_true',
|
||||
help='use ccache to speed up rebuilds')
|
||||
@cmdln.option('--pkg-ccache', metavar='/path/to/_ccache.tar',
|
||||
help='path to an existing uncompressed archive ccache. Using this option implies --ccache')
|
||||
@cmdln.option('--with', metavar='X', dest='_with', action='append',
|
||||
help='enable feature X for build')
|
||||
@cmdln.option('--without', metavar='X', action='append',
|
||||
|
Loading…
Reference in New Issue
Block a user