[llvm] r367362 - Remove cmake checks for MSVC 1900 / VS 2013
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 30 15:49:11 PDT 2019
Author: rnk
Date: Tue Jul 30 15:49:11 2019
New Revision: 367362
URL: http://llvm.org/viewvc/llvm-project?rev=367362&view=rev
Log:
Remove cmake checks for MSVC 1900 / VS 2013
Our minimum Visual C++ version is 19.10 from Visual Studio 2017.
Modified:
llvm/trunk/CMakeLists.txt
llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=367362&r1=367361&r2=367362&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Tue Jul 30 15:49:11 2019
@@ -573,10 +573,8 @@ if(CMAKE_CROSSCOMPILING OR (LLVM_OPTIMIZ
set(LLVM_USE_HOST_TOOLS ON)
endif()
-if (MSVC_IDE AND NOT (MSVC_VERSION LESS 1900))
+if (MSVC_IDE)
option(LLVM_ADD_NATIVE_VISUALIZERS_TO_SOLUTION "Configure project to use Visual Studio native visualizers" TRUE)
-else()
- 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)
endif()
if (LLVM_BUILD_INSTRUMENTED OR LLVM_BUILD_INSTRUMENTED_COVERAGE OR
Modified: llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/HandleLLVMOptions.cmake?rev=367362&r1=367361&r2=367362&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/HandleLLVMOptions.cmake (original)
+++ llvm/trunk/cmake/modules/HandleLLVMOptions.cmake Tue Jul 30 15:49:11 2019
@@ -353,12 +353,6 @@ elseif(MINGW) # FIXME: Also cygwin?
endif()
if( MSVC )
- if( CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19.0 )
- # For MSVC 2013, disable iterator null pointer checking in debug mode,
- # especially so std::equal(nullptr, nullptr, nullptr) will not assert.
- add_definitions("-D_DEBUG_POINTER_IMPL=")
- endif()
-
include(ChooseMSVCCRT)
# Add definitions that make MSVC much less annoying.
@@ -397,16 +391,10 @@ if( MSVC )
CMAKE_SHARED_LINKER_FLAGS)
endif()
- # /Zc:strictStrings is incompatible with VS12's (Visual Studio 2013's)
- # debug mode headers. Instead of only enabling them in VS2013's debug mode,
- # we'll just enable them for Visual Studio 2015 (VS 14, MSVC_VERSION 1900)
- # and up.
- if (NOT (MSVC_VERSION LESS 1900))
- # Disable string literal const->non-const type conversion.
- # "When specified, the compiler requires strict const-qualification
- # conformance for pointers initialized by using string literals."
- append("/Zc:strictStrings" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
- endif(NOT (MSVC_VERSION LESS 1900))
+ # Disable string literal const->non-const type conversion.
+ # "When specified, the compiler requires strict const-qualification
+ # conformance for pointers initialized by using string literals."
+ append("/Zc:strictStrings" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
# "Generate Intrinsic Functions".
append("/Oi" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
More information about the llvm-commits
mailing list