Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 12ec8e1

Browse files
committedJan 2, 2017
[cmake] Normalize LLVM_ENABLE_DIA_SDK to fix Windows tests
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
1 parent 03a167d commit 12ec8e1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎cmake/config-ix.cmake

+7
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,13 @@ if( MSVC )
457457
if(LLVM_ENABLE_DIA_SDK AND NOT HAVE_DIA_SDK)
458458
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.")
459459
endif()
460+
461+
# Normalize to 0/1 for lit.site.cfg
462+
if(LLVM_ENABLE_DIA_SDK)
463+
set(LLVM_ENABLE_DIA_SDK 1)
464+
else()
465+
set(LLVM_ENABLE_DIA_SDK 0)
466+
endif()
460467
else()
461468
set(LLVM_ENABLE_DIA_SDK 0)
462469
endif( MSVC )

0 commit comments

Comments
 (0)
Please sign in to comment.