Re: [ccache] Ccache and cross compilers

2012-07-19 Thread Joel Rosdahl
On 9 July 2012 19:35, Richard Maw  wrote:
> However if you use ccache via a symlink it may use realpath, which I
> think flattens all the symlinks.

Nope, ccache doesn't flatten any symlinks when hashing the compiler name.

-- Joel
___
ccache mailing list
ccache@lists.samba.org
https://lists.samba.org/mailman/listinfo/ccache


Re: [ccache] Ccache and cross compilers

2012-07-19 Thread Joel Rosdahl
On 9 July 2012 19:06, DATACOM - Samuel Lucas  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
___
ccache mailing list
ccache@lists.samba.org
https://lists.samba.org/mailman/listinfo/ccache


Re: [ccache] Ccache and cross compilers

2012-07-09 Thread Richard Maw
On Mon, Jul 09, 2012 at 02:06:00PM -0300, DATACOM - Samuel Lucas wrote:
> Does anyone knows if ccache uses also the compiler name for the
> hash? Does it follow symbolic links for that?

>From a look at the source code, it does hash the basename.

However if you use ccache via a symlink it may use realpath, which I
think flattens all the symlinks.
___
ccache mailing list
ccache@lists.samba.org
https://lists.samba.org/mailman/listinfo/ccache