-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>
> Corrrect - but can you think of any example where the preprocessed
> source will remain exactly the same, but the code would still need to
> be recompiled? It seems a contradiction.

Well - when you consider that the compilation process is made up of three 
things then you know what you can play with:
1. The sources.
2. The flags.
3. The tool chain.
Since the source didn't change it means that the change could either be in 
the flags or in the tool chain. As far as I know ccache keeps the flags so 
changing them will cause a recompilation. The only thing left the tool chain:
changing your compiter, assembler, linker, preprocessor or anything that 
effects the way they work (for instance - if they are effected by environment 
variables in some way or by the presense/lack of other programs that they may 
run on an optional basis). This means that the only thing to watch out from 
when using ccache is subtle changes in the tool chain. Stuff that has to do 
with dynamic library search paths is also something to watch out from 
(fiddling with /etc/ld.so.conf, LD_LIBRARY_PATH etc...).

Conclusion: unless you're fiddling with your tool chain ccache is safe. If 
you are - then you probably know what you're doing and willing the eat your 
own dogfood or clear the cache whenever you know you changed something that 
will have an effect on generated objects.

On another note: if ccache would remove comments from sources when making MD5 
signatures like my own dependecy management tool it would be even better 
(adding comments is no reason for recompilation). Anyone know if ccache knows 
how to do that or if this is planned ?

Regards,
        Mark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9lX55xlxDIcceXTgRAg0xAJ0cddRf2QKMwgHxQSplUK1SfDO5bACgoO+q
ZTW0PpTo8qHwYKFWrTPSeJA=
=ynnY
-----END PGP SIGNATURE-----

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to