Re: [ccache] Using a shared ccache in cmake environment (linux)

2020-03-17 Thread Steffen Dettmer via ccache
Hi, * On Tue, Mar 17, 2020 at 3:54 PM Paul Smith wrote: > You don't say which compiler you're using but if you're using GCC you > can consider using the -ffile-prefix-map option to avoid these issues. Thanks for the tip! Your are right, this is for gcc, sorry that I didn't mention.

Re: [ccache] Using a shared ccache in cmake environment (linux)

2020-03-17 Thread Paul Smith via ccache
On Mon, 2020-03-16 at 20:26 +0100, Steffen Dettmer via ccache wrote: > As workaround for a special unrelated issue currently we redefine > __FILE__ (and try to remove that redefinition). I understand that > ccache still works thanks to CCACHE_BASEDIR even for __FILE__ usage > inside files. Is that

[ccache] Using a shared ccache in cmake environment (linux)

2020-03-17 Thread Steffen Dettmer via ccache
Hi, I setup ccache with shared cache for some of our projects and I would like to learn how to do it correctly. Projects here have 1-2 MLOC in 3-10k files (mostly C++) and are built via cmake files. We have around 20 devs active typically plus Jenkins and mostly they compile the same inputs