[PATCH] D17741: adds __FILE_BASENAME__ builtin macro
Nico Weber via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 3 16:50:11 PST 2016
On Thu, Mar 3, 2016 at 4:28 PM, Joerg Sonnenberger via cfe-commits <
cfe-commits at lists.llvm.org> wrote:
> On Thu, Mar 03, 2016 at 02:09:17PM -0800, Nico Weber via cfe-commits wrote:
> > On Thu, Mar 3, 2016 at 1:50 PM, Joerg Sonnenberger via cfe-commits <
> > cfe-commits at lists.llvm.org> wrote:
> >
> > > On Thu, Mar 03, 2016 at 07:39:04PM +0000, Weiming Zhao via cfe-commits
> > > wrote:
> > > > Change the option name to -ffile-macro-prefix-to-remove
> > >
> > > This still sounds to me like a solution for a very restricted part of a
> > > much more generic problem...
> > >
> >
> > What do you mean?
>
> Storing only the base name of file names is a strict subset of __FILE__
> transformations. As mentioned in the linked GCC PR, other uses are
> creating build location independent output for larger software projects
> etc. For that, reducing to the base name is not an option as it removes
> too much information.
>
But ffile-macro-prefix-to-remove has a general prefix arg, which you can
set to your build dir. This isn't just a "get me the basename" flag (?)
>
> Joerg
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160303/38dc76c2/attachment.html>
More information about the cfe-commits
mailing list