mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 07:01:03 +08:00
Get lld building with MSVC2013
llvm-svn: 194481
This commit is contained in:
@@ -92,9 +92,7 @@ endif()
|
||||
|
||||
# lld requires c++11 to build. Make sure that we have a compiler and standard
|
||||
# library combination that can do that.
|
||||
if (MSVC11)
|
||||
# Do nothing, we're good.
|
||||
elseif (NOT MSVC)
|
||||
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).*"))
|
||||
@@ -102,7 +100,7 @@ elseif (NOT MSVC)
|
||||
"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.")
|
||||
endif()
|
||||
else()
|
||||
elseif (MSVC_VERSION LESS 1700)
|
||||
message(FATAL_ERROR "The selected compiler does not support c++11 which is "
|
||||
"required to build lld.")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user