Skip to content

Commit 620b890

Browse files
committed
[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 llvm-svn: 202568
1 parent 25eacf7 commit 620b890

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lld/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ endif()
108108
if (NOT MSVC)
109109
# gcc and clang require the -std=c++0x or -std=c++11 flag.
110110
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU|Clang" AND
111-
NOT ("${CMAKE_CXX_FLAGS}" MATCHES ".*-std=(c|gnu)\\+\\+(0x|11).*"))
111+
NOT ("${CMAKE_CXX_FLAGS}" MATCHES ".*-std=(c|gnu)\\+\\+(0x|11|1y).*"))
112112
message(FATAL_ERROR
113113
"lld requires c++11. Clang and gcc require -std=c++0x or -std=c++11 to "
114114
"enter this mode. Please set CMAKE_CXX_FLAGS accordingly.")

0 commit comments

Comments
 (0)