I have ccache version 4.6.1 via homebrew. On master @ d6832217ef45ea0c858e3fcdec5d4fe87097c839:
0ccache -C
1ccache --zero-stats
2cd depends
3make NO_QT=1 NO_ZMQ=1 NO_BDB=1 NO_UPMP=1 NO_NATPMP=1
4ccache --show-stats
This builds a bunch of stuff, but nothing ends up in the ccache:
0Summary:
1 Hits: 0 / 0
2 Direct: 0 / 0
3 Preprocessed: 0 / 0
4 Misses: 0
5 Direct: 0
6 Preprocessed: 0
7Primary storage:
8 Hits: 0 / 0
9 Misses: 0
10 Cache size (GB): 0.00 / 10.00 (0.00 %)
Possibly related to #21552, but no cross-compilation is involved here.
This may have the case forever; I only noticed today while experimenting with distcc
. This uses $CCACHE_PREFIX=distcc
(which I disabled above) in order to first check the cache and only then distribute a compilation job. I noticed no jobs got distributed when building depends, which is annoying, because that’s by far the slowest compilation task (part of why I rarely use it).