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

2020-03-24 Thread Joel Rosdahl via ccache
On Mon, 23 Mar 2020 at 17:11, Steffen Dettmer via ccache wrote: > Just BTW, isn't it common to build in some $builddir different from top > $srcdir (e.g. automake, cmake) and in that case couldn't the common case need > two base directories? Note that base_dir doesn't have to be the top source

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

2020-03-23 Thread Steffen Dettmer via ccache
Hi, thank you so much for your so valuable input!! On Sat, Mar 21, 2020 at 2:19 PM Joel Rosdahl wrote: > > On Tue, 17 Mar 2020 at 10:06, Steffen Dettmer via ccache > wrote: > > As workaround for a special unrelated issue currently we redefine > > __FILE__ (and try to remove that redefinition).

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

2020-03-21 Thread Joel Rosdahl via ccache
On Tue, 17 Mar 2020 at 10:06, 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

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