[lld] r202568 - [C++1y] Don't error if the user is enabling C++1y, which is *newer* than

Chandler Carruth chandlerc at gmail.com
Fri Feb 28 19:18:56 PST 2014


Author: chandlerc
Date: Fri Feb 28 21:18:56 2014
New Revision: 202568

URL: http://llvm.org/viewvc/llvm-project?rev=202568&view=rev
Log:
[C++1y] Don't error if the user is enabling C++1y, which is *newer* than
C++11. I'm not sure that this is a good idea, but I know some crazy
folks on the core working group who like to live dangerously, and they
should still be able to build LLD. =D

Modified:
    lld/trunk/CMakeLists.txt

Modified: lld/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/CMakeLists.txt?rev=202568&r1=202567&r2=202568&view=diff
==============================================================================
--- lld/trunk/CMakeLists.txt (original)
+++ lld/trunk/CMakeLists.txt Fri Feb 28 21:18:56 2014
@@ -108,7 +108,7 @@ endif()
 if (NOT MSVC)
   # gcc and clang require the -std=c++0x or -std=c++11 flag.
   if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU|Clang" AND
-      NOT ("${CMAKE_CXX_FLAGS}" MATCHES ".*-std=(c|gnu)\\+\\+(0x|11).*"))
+      NOT ("${CMAKE_CXX_FLAGS}" MATCHES ".*-std=(c|gnu)\\+\\+(0x|11|1y).*"))
     message(FATAL_ERROR
       "lld requires c++11. Clang and gcc require -std=c++0x or -std=c++11 to "
       "enter this mode. Please set CMAKE_CXX_FLAGS accordingly.")





More information about the llvm-commits mailing list