Skip to content

Commit f423390

Browse files
committed
[cmake] Normalize LLVM_ENABLE_DIA_SDK to fix Windows tests
Attempts to fix Windows build breakage caused by r290818. llvm-svn: 290832
1 parent e9735f1 commit f423390

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

llvm/cmake/config-ix.cmake

Lines changed: 7 additions & 0 deletions
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)