Disable compilation of llvm-pdbdump for versions of MSVC < 2013.
authorZachary Turner <zturner@google.com>
Thu, 29 Jan 2015 18:44:14 +0000 (18:44 +0000)
committerZachary Turner <zturner@google.com>
Thu, 29 Jan 2015 18:44:14 +0000 (18:44 +0000)
Certain aspects of llvm-pdbdump require language support only present in
MSVC 2013 and higher.  Since this is strictly a utility, and since we hope
to drop support for MSVC 2012 soon, don't build this unless MSVC 2013 or
higher.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227479 91177308-0d34-0410-b5e6-96231b3b80d8

tools/CMakeLists.txt

index 07b0bf9071799e2d9f8b22e3cce03a5f98cef6b1..b496f5f27b7a9d6dc3f4888f19d123277532025f 100644 (file)
@@ -61,7 +61,10 @@ add_llvm_tool_subdirectory(yaml2obj)
 
 add_llvm_tool_subdirectory(llvm-go)
 
-if(MSVC)
+if(MSVC AND NOT(MSVC_VERSION LESS 1800))
+  # Certain aspects of llvm-pdbdump require language support only present in
+  # MSVC 2013 and higher.  Since this is strictly a utility, and since we hope
+  # to drop support for MSVC 2012 soon, don't build this for MSVC < 2013.
   add_llvm_tool_subdirectory(llvm-pdbdump)
 endif()