Re: cache 3.2.2 calls the compiler with a relative path if CCACHE_BASEDIR is set
Joel Rosdahl <[email protected]> Sat, 23 May 2015 09:51:55 +0200
| Newsgroups | gmane.comp.compilers.ccache |
|---|---|
| Message-ID | <CAK8D=pim539M9c6GRqrZLc3PEbQP-fe_=h25hgWshOp8ngjQvA@mail.gmail.com> |
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