Re: [ccache] basename of source file in hashed name in ccache

2011-12-20 Thread Frank Klotz
On 11/08/2011 01:49 PM, Joel Rosdahl wrote: On 5 November 2011 01:26, Frank Klotzfrank.kl...@alcatel-lucent.com wrote: [...] I remember quite clearly (and I just confirmed with a colleague who is still there) that the file names in the cache contained BOTH the hash AND the basename of the

Re: [ccache] basename of source file in hashed name in ccache

2011-12-20 Thread Joel Rosdahl
On 2011-12-20 20:09, Frank Klotz wrote: Suggestion: Put the below 2-line solution in the Corrupt object files section of http://ccache.samba.org/manual.html [...] It's a LOT lighter-weight solution than clearing the cache, and much easier than messing with the log. Good suggestion. I'll do

Re: [ccache] basename of source file in hashed name in ccache

2011-11-09 Thread Frank Klotz
On 11/08/2011 11:08 PM, Joel Rosdahl wrote: On 8 November 2011 23:18, Frank Klotzfrank.kl...@alcatel-lucent.com wrote: On 11/08/2011 01:49 PM, Joel Rosdahl wrote: It doesn't sound like a good idea to me, at least, since you would need to store duplicate copies of the object file for two

Re: [ccache] basename of source file in hashed name in ccache

2011-11-09 Thread Joel Rosdahl
On 9 November 2011 18:46, Frank Klotz frank.kl...@alcatel-lucent.com wrote: On 11/08/2011 11:08 PM, Joel Rosdahl wrote: I don't think you can in an acceptable way find an existing file to reuse when you're about to store a new file -- you'll have to list the directory and iterate through its

Re: [ccache] basename of source file in hashed name in ccache

2011-11-08 Thread Joel Rosdahl
On 5 November 2011 01:26, Frank Klotz frank.kl...@alcatel-lucent.com wrote: [...] I remember quite clearly (and I just confirmed with a colleague who is still there) that the file names in the cache contained BOTH the hash AND the basename of the object file. As far as I know, the object files