Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

Add CLCACHE_RECACHE feature #348

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

oktal3700
Copy link

Just like in ccache, this puts clcache into a "write-only" mode.
Objects will be stored in the cache, but objects already in the cache
will not be reused. The real compiler is always used.

This is useful in CI when you have a release branch that you want to
always use the real compiler, and feature branches that you want to
reap the benefit of the cache generated from the release branch.
In that case you would enable CLCACHE_RECACHE only when building from
the release branch.

@codecov-io
Copy link

codecov-io commented Feb 18, 2019

Codecov Report

Merging #348 into master will increase coverage by 0.36%.
The diff coverage is 85.71%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #348      +/-   ##
==========================================
+ Coverage   88.93%   89.29%   +0.36%     
==========================================
  Files           4        4              
  Lines        1301     1308       +7     
  Branches      195      199       +4     
==========================================
+ Hits         1157     1168      +11     
+ Misses        106      105       -1     
+ Partials       38       35       -3
Flag Coverage Δ
#integrationtests_memcached 67.24% <14.28%> (-0.38%) ⬇️
#unittests 86.23% <71.42%> (+0.38%) ⬆️
Impacted Files Coverage Δ
clcache/__main__.py 91.28% <85.71%> (+0.4%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cae73d8...42da147. Read the comment docs.

@frerich
Copy link
Owner

frerich commented Feb 19, 2019

Looks good to me -- just a test seems to be missing. :-)

Just like in ccache, this puts clcache into a "write-only" mode.
Objects will be stored in the cache, but objects already in the cache
will not be reused. The real compiler is always used.

This is useful in CI when you have a release branch that you want to
always use the real compiler, and feature branches that you want to
reap the benefit of the cache generated from the release branch.
In that case you would enable CLCACHE_RECACHE only when building from
the release branch.
@oktal3700
Copy link
Author

Added a testcase.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants