Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forward --ccache-maxsize CLI arg to obs-build #1460

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions osc/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,10 @@
if opts.ccache or config['ccache']:
buildargs.append('--ccache')
xp.append('ccache')
if opts.ccache_maxsize:
buildargs.append('--ccache')
buildargs.append('--ccache-maxsize=%s' % opts.ccache_maxsize)
xp.append('ccache')

Check warning on line 758 in osc/build.py

View check run for this annotation

Codecov / codecov/patch

osc/build.py#L755-L758

Added lines #L755 - L758 were not covered by tests
if opts.pkg_ccache:
buildargs.append('--pkg-ccache=%s' % opts.pkg_ccache)
xp.append('ccache')
Expand Down
2 changes: 2 additions & 0 deletions osc/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -7087,6 +7087,8 @@ def parse_repoarchdescr(self, args, noinit=False, alternative_project=None, igno
help='use N parallel build jobs with icecream')
@cmdln.option('--ccache', action='store_true',
help='use ccache to speed up rebuilds')
@cmdln.option('--ccache-maxsize', metavar='ccache_maxsize',
help='maximum size of the ccache archive')
@cmdln.option('--pkg-ccache', metavar='/path/to/_ccache.tar',
help='path to an existing uncompressed archive ccache. Using this option implies --ccache')
@cmdln.option('--sccache', action='store_true',
Expand Down
Loading