[cfe-commits] [patch] Default to -std=c++11 on windows

Nico Weber thakis at chromium.org
Wed Jul 11 09:21:46 PDT 2012


the attached patch lets clang default to -std=c++11 on windows, as
discussed on this list previously.

This could be done in either the driver or in the frontend, both
currently do some language standard processing. A comment in
lib/Driver/Tools.cpp (2 lines above my patch) suggests that eventually
all this code should move to the driver, so that's where I put my

This could also keyed off various things. I settled on comparing the
triple's OS to llvm::Triple::Win32, since that's what enables
-fms-compatibility by default too.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-ms-std11-driver.patch
Type: application/octet-stream
Size: 813 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120711/30768ad5/attachment.obj>

More information about the cfe-commits mailing list