[cfe-dev] Clang and MSVC11 headers
Nico Weber
thakis at chromium.org
Wed May 1 20:39:28 PDT 2013
On Wed, May 1, 2013 at 8:12 PM, Reid Kleckner <rnk at google.com> wrote:
> It's a known issue (need to file a PR).
>
> IIUC, it has to do with pre-processor comma expansion, but I could be
> wrong. Joao posted a patch:
> http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-April/029266.html
>
> I've mostly focused on building with MSVC 2010 headers, so I haven't
> had to deal with this.
>
> Can we go forward with the preprocessor patch? I wasn't around for
> the revert, so I don't have any context. Is it just a question of
> getting a review?
>
I think I reverted it because it broke compiling the MSVS2010 headers.
…no, it broke gtest. http://llvm.org/bugs/show_bug.cgi?id=13924 /
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20120924/065029.html
Nico
>
> On Wed, May 1, 2013 at 10:44 AM, Leszek Świrski <leszek at swirski.co.uk>
> wrote:
> > To what extent does clang try to make itself compatible with MSVC
> headers,
> > for
> > use of clang on Windows? I've recently been trying to use clang on
> Windows
> > along with the MSVC11 headers, and clang fails to compile the macro magic
> > that
> > is used to emulate variadic templates. Upon further investigation, this
> is
> > because the macros themselves are incorrect, but work in MSVC due to a
> bug
> > in
> > the preprocessor. I've submitted a bug report [1], but this is
> apparently a
> > known issue, and I'm not optimistic about it ever getting fixed.
> >
> > What does this mean for us few clang-on-windows users? Are the MSVC11
> > headers a
> > lost cause, or could clang implement some sort of MSVC preprocessor
> > compatibility mode?
> >
> > [1] https://connect.microsoft.com/VisualStudio/feedback/details/785846
> >
> > - Leszek
> >
> > _______________________________________________
> > cfe-dev mailing list
> > cfe-dev at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
> >
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130501/3d9afa45/attachment.html>
More information about the cfe-dev
mailing list