Skip to content

Commit

Permalink
[cmake] Normalize LLVM_ENABLE_DIA_SDK to fix Windows tests
Browse files Browse the repository at this point in the history
Attempts to fix Windows build breakage caused by r290818.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290832 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
mgorny committed Jan 2, 2017
1 parent 03a167d commit 12ec8e1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmake/config-ix.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 12ec8e1

Please sign in to comment.