[ccache] cache 3.2.2 calls the compiler with a relative path if CCACHE_BASEDIR is set

Joel Rosdahl joel at rosdahl.net
Sat May 23 01:51:55 MDT 2015


Hi,

If CCACHE_BASEDIR is set, under certain conditions ccache will invoke the
> compiler with a relativized path to the source file. This breaks certain
> mechanisms I have in the code that rely on __FILE__ being an absolute
> path.


Yes, that's a known effect of using CCACHE_BASEDIR, see
https://ccache.samba.org/manual.html#_compiling_in_different_directories:

"The drawbacks of using a base directory are:

* If you specify an absolute path to the source code file, __FILE__ macros
will be expanded to a relative path instead. [...]"


-- Joel


More information about the ccache mailing list