[PATCH] D17741: adds __FILE_BASENAME__ builtin macro

Joerg Sonnenberger via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 3 12:42:16 PST 2019


On Thu, Jan 03, 2019 at 05:01:00PM +0000, Ximin Luo via cfe-commits wrote:
> My patch that Roman quoted in the email below was an additional
> mechanism to set -fmacro-prefix-map and -fdebug-prefix-map via an
> environment variable. This was not accepted into GCC because they are
> (in summary) allergic against using environment variables to set anything.

The main problem here is that GCC insists on leaking the full command
line into the output and that makes it difficult to impossible to
actually provide sane mappings without using the environment.

Joerg


More information about the cfe-commits mailing list