summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2017-01-02 20:22:45 +0000
committerMichal Gorny <mgorny@gentoo.org>2017-01-02 20:22:45 +0000
commitf42339015643d7809a8b81afb8685fb19e069c0f (patch)
tree8ab21eb0985b2ce4520cd2f731bcf893a2309de6
parente9735f17e04bd5cd4cf232a733edc1d0652b9753 (diff)
downloadbcm5719-llvm-f42339015643d7809a8b81afb8685fb19e069c0f.tar.gz
bcm5719-llvm-f42339015643d7809a8b81afb8685fb19e069c0f.zip
[cmake] Normalize LLVM_ENABLE_DIA_SDK to fix Windows tests
Attempts to fix Windows build breakage caused by r290818. llvm-svn: 290832
-rwxr-xr-xllvm/cmake/config-ix.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/cmake/config-ix.cmake b/llvm/cmake/config-ix.cmake
index fe3afd3fcc2..530a5ddaab4 100755
--- a/llvm/cmake/config-ix.cmake
+++ b/llvm/cmake/config-ix.cmake
@@ -457,6 +457,13 @@ if( MSVC )
if(LLVM_ENABLE_DIA_SDK AND NOT HAVE_DIA_SDK)
message(FATAL_ERROR "DIA SDK not found. If you have both VS 2012 and 2013 installed, you may need to uninstall the former and re-install the latter afterwards.")
endif()
+
+ # Normalize to 0/1 for lit.site.cfg
+ if(LLVM_ENABLE_DIA_SDK)
+ set(LLVM_ENABLE_DIA_SDK 1)
+ else()
+ set(LLVM_ENABLE_DIA_SDK 0)
+ endif()
else()
set(LLVM_ENABLE_DIA_SDK 0)
endif( MSVC )
OpenPOWER on IntegriCloud