Re: [ccache] Ccache and cross compilers

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


[ccache] Ccache and cross compilers

2012-07-09 Thread DATACOM - Samuel Lucas

Hi,

I'm using ccache in a project with gcc 4.0 power pc compilers from ELDK 4.

We have two powerpc architectures (ppc_6xx-gcc and ppc_8xx-gcc). In ELDK 
both ppc_6xx-gcc and ppc_8xx-gcc are symbolic links to a single binary, 
powerpc-linux-gcc, which produces different objects depending on the how 
it was invoked (which symlink was used).


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?


Thanks,

 - Samuel


___
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