summaryrefslogtreecommitdiffstats
path: root/llvm/cmake/modules/LLVMConfig.cmake.in
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2017-01-02 18:19:35 +0000
committerMichal Gorny <mgorny@gentoo.org>2017-01-02 18:19:35 +0000
commit89b6f16b3e8465884aa6f181553cc69270b8ebcd (patch)
treefc4b1f3c5254f122665c81ebf7003d68f8b3fae8 /llvm/cmake/modules/LLVMConfig.cmake.in
parent7b83732a4025b5a3c652bfb585628104d995df8d (diff)
downloadbcm5719-llvm-89b6f16b3e8465884aa6f181553cc69270b8ebcd.tar.gz
bcm5719-llvm-89b6f16b3e8465884aa6f181553cc69270b8ebcd.zip
[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 llvm-svn: 290818
Diffstat (limited to 'llvm/cmake/modules/LLVMConfig.cmake.in')
-rw-r--r--llvm/cmake/modules/LLVMConfig.cmake.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/cmake/modules/LLVMConfig.cmake.in b/llvm/cmake/modules/LLVMConfig.cmake.in
index f7412bac108..c30c92b66d8 100644
--- a/llvm/cmake/modules/LLVMConfig.cmake.in
+++ b/llvm/cmake/modules/LLVMConfig.cmake.in
@@ -37,6 +37,8 @@ set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS@)
set(LLVM_ENABLE_ZLIB @LLVM_ENABLE_ZLIB@)
+set(LLVM_ENABLE_DIA_SDK @LLVM_ENABLE_DIA_SDK@)
+
set(LLVM_NATIVE_ARCH @LLVM_NATIVE_ARCH@)
set(LLVM_ENABLE_PIC @LLVM_ENABLE_PIC@)
OpenPOWER on IntegriCloud