1
0
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:
Marco Strigl 2020-05-22 15:55:48 +02:00 committed by GitHub
commit 3967133022
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -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:

View File

@ -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',