Skip to content

Commit

Permalink
add option pkg-ccache to be passed to build-cmd
Browse files Browse the repository at this point in the history
this option is a /path/to/_ccache.tar. The patch just forwards that
option to the build script.
  • Loading branch information
Sumit Jamgade committed May 19, 2020
1 parent 9b2cbfe commit 5dd853e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions osc/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,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:
Expand Down
2 changes: 2 additions & 0 deletions osc/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -6303,6 +6303,8 @@ def parse_repoarchdescr(self, args, noinit = False, alternative_project = None,
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',
Expand Down

0 comments on commit 5dd853e

Please sign in to comment.