OSDN Git Service

[cmake] Add LLVM_ENABLE_DIA_SDK option, and expose it in LLVMConfig
authorMichal Gorny <mgorny@gentoo.org>
Mon, 2 Jan 2017 18:19:35 +0000 (18:19 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Mon, 2 Jan 2017 18:19:35 +0000 (18:19 +0000)
commita50b783ab7ed702eebd509979890561fb953c868
tree57753c1b953e86fd079dc4ba05eaff24f54c4dff
parent9af2e4eb39abf970f690b6d445191b7e8266bac3
[cmake] Add LLVM_ENABLE_DIA_SDK option, and expose it in LLVMConfig

Add an explicit LLVM_ENABLE_DIA_SDK option to control building support
for DIA SDK-based debugging. Control its value to match whether DIA SDK
support was found and expose it in LLVMConfig (alike LLVM_ENABLE_ZLIB).

Its value is needed for LLDB to determine whether to run tests requiring
DIA support. Currently it is obtained from llvm/Config/config.h;
however, this file is not available for standalone builds. Following
this change, LLDB will be modified to use the value from LLVMConfig.

Differential Revision: https://reviews.llvm.org/D26255

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290818 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/config-ix.cmake
cmake/modules/LLVMConfig.cmake.in
docs/CMake.rst
include/llvm/Config/config.h.cmake
lib/DebugInfo/PDB/CMakeLists.txt
lib/DebugInfo/PDB/PDB.cpp
test/lit.site.cfg.in