Skip to content

Commit

Permalink
Merge pull request #793 from sjamgade/ccache_path
Browse files Browse the repository at this point in the history
add option pkg-ccache to be passed to build-cmd
  • Loading branch information
lethliel committed May 22, 2020
2 parents 3e10473 + 5dd853e commit 3967133
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 @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions osc/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -6324,6 +6324,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 3967133

Please sign in to comment.