[ccache] Ccache and cross compilers

Joel Rosdahl joel at rosdahl.net
Thu Jul 19 09:56:30 MDT 2012


On 9 July 2012 19:06, DATACOM - Samuel Lucas <samuellucas at datacom.ind.br> wrote:
> [...]
> I'm wondering if it's safe to use a single ccache directory for both
> architectures or I must use separated directories for each architecture. The
> compiler's mtime, size and content are the same for both.
>
> Does anyone knows if ccache uses also the compiler name for the hash? Does
> it follow symbolic links for that?

Yes, ccache includes the compiler name in the hash (this is also
mentioned in the manual:
http://ccache.samba.org/manual.html#_common_hashed_information), so it
should be safe to use the same ccache directory for both
architectures. Symlinks are not followed.

-- Joel


More information about the ccache mailing list