clcache icon indicating copy to clipboard operation
clcache copied to clipboard

Add CLCACHE_RECACHE feature

Open oktal3700 opened this issue 6 years ago • 3 comments

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 avatar Feb 18 '19 22:02 oktal3700

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%) :arrow_down:
#unittests 86.23% <71.42%> (+0.38%) :arrow_up:
Impacted Files Coverage Δ
clcache/__main__.py 91.28% <85.71%> (+0.4%) :arrow_up:

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.

codecov-io avatar Feb 18 '19 22:02 codecov-io

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

frerich avatar Feb 19 '19 07:02 frerich

Added a testcase.

oktal3700 avatar Feb 21 '19 00:02 oktal3700