Dear Anders,

Our reason for avoiding caching of the specific file is because it is generated 
from a series of calls to git for calculating the version number.

I was afraid that caching would give us an old version number.



Från: ccache <> för Anders Björklund 
Skickat: den 17 oktober 2016 21:17:25
Ämne: Re: [ccache] How to omit caching of a specific compilation

Mats Nilsson wrote:
> Thank you very much!
>> Is there a way to instruct ccache to not cache the object file from a 
>> specific compilation?
>      Look for the following configuration file options in the ccache(1) man
> page for disable, read_only, and read_only_direct to decide which one you
> need for your situation.

It would also be nice to know why it had to be disabled, if there is a
bug in ccache. Normally caching a compilation shouldn't hurt anything...

Now, certain compilations (e.g. timestamps) one might to avoid compiling
just to not fill the cache with junk. But normally that doesn't happen*.


* i.e. it's a bad idea anyway, for other reasons (reproducability etc)

See for more on the particular subject.
ccache mailing list
ccache mailing list

Reply via email to