[ccache] How to omit caching of a specific compilation

Mats Nilsson mats.nilsson at tobii.com
Tue Oct 18 09:48:14 UTC 2016


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.

BR,

/Mats

________________________________
Från: ccache <ccache-bounces at lists.samba.org> för Anders Björklund <anders at psqr.se>
Skickat: den 17 oktober 2016 21:17:25
Till: ccache at lists.samba.org
Ä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*.

/Anders


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

See https://reproducible-builds.org/ for more on the particular subject.
_______________________________________________
ccache mailing list
ccache at lists.samba.org
https://lists.samba.org/mailman/listinfo/ccache


More information about the ccache mailing list