On 2008-09-10 at 17:10:43, Y Giridhar Appaji Nag wrote:
> >   2- disable ccache caching when that argument is present
> 
> I am not too sure about this, but don't you think going this way may be
> a bit counter-productive to ccache's usage?  In particular, my use case
> above.

Yes, it would be better to preserve the option while running ccache
(i.e. option 1 is more desirable to users).

> > The problem I see with option 1 is that it might involve caching these extra
> > files too, which sounds like a bit of work patch-wise.
> 
> Or rather, we don't delete the temporary pre-processor file.  I did not
> look at the code too much but we shouldn't have to cache this file also.

Well, that works for the first run when the output of the compilation is not
in cache. Then on the second run, gcc will not be called at all so these
temporary files will not be generated as the object files will be copied
back from cache.

So for that option to be useful (and consistent) regardless of whether or
not the temp file is in cache, then I think that you'd have to save the
extra temporary files in your ~/.ccache/ directory.

Francois



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to