return Statistic::preprocessed_cache_hit;
}
- ctx.storage.local.increment_statistic(Statistic::preprocessed_cache_miss);
+ if (!ctx.config.recache()) {
+ ctx.storage.local.increment_statistic(Statistic::preprocessed_cache_miss);
+ }
}
if (ctx.config.read_only()) {
$CCACHE_COMPILE -c test1.c
expect_stat preprocessed_cache_hit 0
+ expect_stat preprocessed_cache_miss 1
expect_stat cache_miss 1
expect_stat recache 0
CCACHE_RECACHE=1 $CCACHE_COMPILE -c test1.c
expect_stat preprocessed_cache_hit 0
+ expect_stat preprocessed_cache_miss 1
expect_stat cache_miss 1
expect_stat recache 1