[cfe-dev] MinGW build does not compile with C++11

Rafael EspĂ­ndola rafael.espindola at gmail.com
Wed Mar 12 07:27:45 PDT 2014


On 12 March 2014 05:09, NAKAMURA Takumi <geek4civic at gmail.com> wrote:
> FYI, it is also applicable to cygwin.
> http://llvm.org/bugs/show_bug.cgi?id=18847
>
> I suggest to check non-ansi functionalities with both -std=c++11 and
> -std=gnu++11 in configure.
> IMHO, for now, we could use -std=gnu++11 until the source tree became
> c++11-compliant.

We should probably not use gnu++11 where we don't need it. The
attached patch is a blind attempt at fixing this for cmake too. I have
only tested that we still use c++11 on linux with it :-)

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: text/x-patch
Size: 1321 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140312/aed9d9b4/attachment.bin>


More information about the cfe-dev mailing list