llvm.org GIT mirror llvm / 36850aa
Fix some remaining documentation references to MSVC 2013 MSVC 2015 has been the minimum supported version of VS since October. Differential Revision: https://reviews.llvm.org/D25710 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289854 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Kleckner 2 years ago
3 changed file(s) with 10 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
0 # Check if the host compiler is new enough. LLVM requires at least GCC 4.8,
1 # MSVC 2013, or Clang 3.1.
1 # MSVC 2015 (Update 3), or Clang 3.1.
22
33 include(CheckCXXSourceCompiles)
44
1616 endif()
1717
1818 if (CMAKE_CXX_SIMULATE_ID MATCHES "MSVC")
19 if (CMAKE_CXX_SIMULATE_VERSION VERSION_LESS 18.0)
20 message(FATAL_ERROR "Host Clang must have at least -fms-compatibility-version=18.0")
19 if (CMAKE_CXX_SIMULATE_VERSION VERSION_LESS 19.0)
20 message(FATAL_ERROR "Host Clang must have at least -fms-compatibility-version=19.0")
2121 endif()
2222 set(CLANG_CL 1)
2323 elseif(NOT LLVM_ENABLE_LIBCXX)
4040 set(CMAKE_REQUIRED_LIBRARIES ${OLD_CMAKE_REQUIRED_LIBRARIES})
4141 endif()
4242 elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
43 if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 18.0)
44 message(FATAL_ERROR "Host Visual Studio must be at least 2013")
45 elseif(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 18.0.31101)
46 message(WARNING "Host Visual Studio should at least be 2013 Update 4 (MSVC 18.0.31101)"
43 if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19.0)
44 message(FATAL_ERROR "Host Visual Studio must be at least 2015")
45 elseif(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19.00.24215.1)
46 message(WARNING "Host Visual Studio should at least be 2015 Update 3 (MSVC 19.00.24215.1)"
4747 " due to miscompiles from earlier versions")
4848 endif()
4949 endif()
130130 * Delegating constructors: N1986_
131131 * Default member initializers (non-static data member initializers): N2756_
132132
133 * Only use these for scalar members that would otherwise be left
134 uninitialized. Non-scalar members generally have appropriate default
135 constructors.
133 * Feel free to use these wherever they make sense and where the `=`
134 syntax is allowed. Don't use braced initialization syntax.
136135
137136 .. _N2118: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2118.html
138137 .. _N2439: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2439.htm
261261
262262 * Clang 3.1
263263 * GCC 4.8
264 * Visual Studio 2015
264 * Visual Studio 2015 (Update 3)
265265
266266 Anything older than these toolchains *may* work, but will require forcing the
267267 build system with a special option and is not really a supported host platform.