Files
qt-creator/dist/clang/patches/bug32018_workaround-llvm-tblgen-crash-during-mingw-build.patch
Nikolai Kosjar bd0d8f532c Clang: Limit mingw workaround to mingw
MSVC seems to have problems linking llvm-tblgen.exe with debug and release
libraries.

Change-Id: Ic7cd120f2bb19f762e656de565ebc3c98bbd750c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-03-08 11:07:14 +00:00

13 lines
342 B
Diff

diff --git a/utils/TableGen/CMakeLists.txt b/utils/TableGen/CMakeLists.txt
index 604e3f1..4e5874c 100644
--- a/utils/TableGen/CMakeLists.txt
+++ b/utils/TableGen/CMakeLists.txt
@@ -1,4 +1,7 @@
set(LLVM_LINK_COMPONENTS Support)
+if (MINGW)
+ set(CMAKE_BUILD_TYPE "Debug")
+endif()
add_tablegen(llvm-tblgen LLVM
AsmMatcherEmitter.cpp