Disable compilation of llvm-pdbdump for versions of MSVC < 2013.

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.

llvm-svn: 227479
This commit is contained in:
Zachary Turner 2015-01-29 18:44:14 +00:00
parent 0ff86c79b4
commit d5bb7e142b
1 changed files with 4 additions and 1 deletions

View 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()