[Bug other/70268] add option -ffile-prefix-map to map one directory name (old) to another (new) in __FILE__, __BASE_FILE__and __builtin_FILE()
infinity0 at pwned dot gg
gcc-bugzilla@gcc.gnu.org
Fri Dec 15 15:15:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70268
infinity0 at pwned dot gg changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |infinity0 at pwned dot gg
--- Comment #12 from infinity0 at pwned dot gg ---
Are you aware of this patch?
https://gcc.gnu.org/ml/gcc-patches/2017-07/msg01315.html
If the overall motivation is to support reproducible builds, then you might be
interested in that, which is a unified mechanism that allows future extensions
to cover things *other* than __FILE__ and debug paths. (For example,
reproducible .o files which, I am told, contain STT_FILE entries that contain
the build path.)
The patch is not accepted yet; I had some review comments back in August and
I'm supposed to amend it to use a command-line flag instead of an environment
variable instead. I was going through my TODO backlog (non-GCC) since that
time, but I'll be finally working on this over the next week or so.
More information about the Gcc-bugs
mailing list