This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v3] Ability to remap file names in __FILE__, etc (PR other/70268)


Ximin Luo <infinity0@pwned.gg> writes:

> -I to an absolute path is not that common for system / distro-built
> stuff.

Ok, thanks for clarifying.


> In the cases that it occurs, indeed it could and should be fixed
> by the package buildsystem, e.g. by stripping a prefix when they
> add -I flags to CFLAGS. But that's a separate issue from what
> we're talking about here.

I believe it is the same issue: any package that blindly embeds
information about how it was built into the result of the build
does not care about reproducible builds.

If others do agree that this should be "fixed" in GCC, then I
would suggest that you add a separate option for the environment
variable case (e.g., -ffile-prefix-map-env) and sidestep the
whole "how to portably distinguish a path from an environment
variable" issue.

Boris


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]