[PATCH] Enable C++11

Arnaud Allard de Grandmaison arnaud.adegm at gmail.com
Mon Jan 6 10:29:28 PST 2014


Sometime ago I proposed a patch for checking the compiler's version is good
enough for us ( 11/27/13: "[PATCH] CMake/Autoconf : perform a sanity check
on the compiler support for C++11"). This was however happening after very
long discussions in the mailing list about C++11 usage in LLVM.

The patch did not get much feedback (apart from Tim), so I did not commit
it, but if C++11 becomes the default compilation mode, I believe we should
add those safety checks (g++ >= 4.7.1, clang++ >= 3.1, VS >= 2012).

Cheers,
--
Arnaud


On Mon, Jan 6, 2014 at 6:34 PM, Alp Toker <alp at nuanti.com> wrote:

> The attached patch enables C++11 by default in the CMake and Makefile
> build systems.
>
> The old LLVM_ENABLE_CXX11 flag is retrofitted as LLVM_ENABLE_CXX1Y for
> those looking to try the latest experimental standard.
>
> The CMake changes include an additional fallback to -std=c++0x. This
> fallback can hopefully be removed shortly when the remaining legacy build
> servers are upgraded.
>
> No changes made to the MSVC configuration in this patch. I'm guessing
> Takumi will want to take care of that personally :-)
>
> Alp.
>
> --
> http://www.nuanti.com
> the browser experts
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140106/f9e93c92/attachment.html>


More information about the cfe-commits mailing list