llvm.org GIT mirror llvm / 2f158d6
Remove cmake checks for MSVC 1900 / VS 2013 Our minimum Visual C++ version is 19.10 from Visual Studio 2017. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367362 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Kleckner 2 months ago
2 changed file(s) with 5 addition(s) and 19 deletion(s). Raw diff Collapse all Expand all
572572 set(LLVM_USE_HOST_TOOLS ON)
573573 endif()
574574
575 if (MSVC_IDE AND NOT (MSVC_VERSION LESS 1900))
575 if (MSVC_IDE)
576576 option(LLVM_ADD_NATIVE_VISUALIZERS_TO_SOLUTION "Configure project to use Visual Studio native visualizers" TRUE)
577 else()
578 set(LLVM_ADD_NATIVE_VISUALIZERS_TO_SOLUTION FALSE CACHE INTERNAL "For Visual Studio 2013, manually copy natvis files to Documents\\Visual Studio 2013\\Visualizers" FORCE)
579577 endif()
580578
581579 if (LLVM_BUILD_INSTRUMENTED OR LLVM_BUILD_INSTRUMENTED_COVERAGE OR
352352 endif()
353353
354354 if( MSVC )
355 if( CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19.0 )
356 # For MSVC 2013, disable iterator null pointer checking in debug mode,
357 # especially so std::equal(nullptr, nullptr, nullptr) will not assert.
358 add_definitions("-D_DEBUG_POINTER_IMPL=")
359 endif()
360
361355 include(ChooseMSVCCRT)
362356
363357 # Add definitions that make MSVC much less annoying.
396390 CMAKE_SHARED_LINKER_FLAGS)
397391 endif()
398392
399 # /Zc:strictStrings is incompatible with VS12's (Visual Studio 2013's)
400 # debug mode headers. Instead of only enabling them in VS2013's debug mode,
401 # we'll just enable them for Visual Studio 2015 (VS 14, MSVC_VERSION 1900)
402 # and up.
403 if (NOT (MSVC_VERSION LESS 1900))
404 # Disable string literal const->non-const type conversion.
405 # "When specified, the compiler requires strict const-qualification
406 # conformance for pointers initialized by using string literals."
407 append("/Zc:strictStrings" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
408 endif(NOT (MSVC_VERSION LESS 1900))
393 # Disable string literal const->non-const type conversion.
394 # "When specified, the compiler requires strict const-qualification
395 # conformance for pointers initialized by using string literals."
396 append("/Zc:strictStrings" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
409397
410398 # "Generate Intrinsic Functions".
411399 append("/Oi" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)