Re: [ccache] How to omit caching of a specific compilation
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 för Anders Björklund Skickat: den 17 oktober 2016 21:17:25 Till: ccache@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@lists.samba.org https://lists.samba.org/mailman/listinfo/ccache ___ ccache mailing list ccache@lists.samba.org https://lists.samba.org/mailman/listinfo/ccache
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@lists.samba.org https://lists.samba.org/mailman/listinfo/ccache
Re: [ccache] How to omit caching of a specific compilation
Thank you very much! BR, /Mats Från: Scott Bennett Skickat: den 10 oktober 2016 22:06:39 Till: Mats Nilsson Kopia: ccache@lists.samba.org Ämne: Re: [ccache] How to omit caching of a specific compilation Mats Nilsson wrote: > I'm new to ccache. > > 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. Scott Bennett, Comm. ASMELG, CFIAG ** * Internet: bennett at sdf.org *xor* bennett at freeshell.org * ** * "A well regulated and disciplined militia, is at all times a good * * objection to the introduction of that bane of all free governments * * -- a standing army." * *-- Gov. John Hancock, New York Journal, 28 January 1790 * ** ___ ccache mailing list ccache@lists.samba.org https://lists.samba.org/mailman/listinfo/ccache
Re: [ccache] How to omit caching of a specific compilation
Mats Nilsson wrote: > I'm new to ccache. > > 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. Scott Bennett, Comm. ASMELG, CFIAG ** * Internet: bennett at sdf.org *xor* bennett at freeshell.org * ** * "A well regulated and disciplined militia, is at all times a good * * objection to the introduction of that bane of all free governments * * -- a standing army." * *-- Gov. John Hancock, New York Journal, 28 January 1790 * ** ___ ccache mailing list ccache@lists.samba.org https://lists.samba.org/mailman/listinfo/ccache