aboutsummaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@qt.io>2017-03-08 11:28:46 +0100
committerNikolai Kosjar <nikolai.kosjar@qt.io>2017-03-08 11:07:14 +0000
commitbd0d8f532c1f394dc2ab00f2efa9693b78cb5ea7 (patch)
tree53e22346e0cea7fee2d2abf7efca1785dbc1db0a /dist
parent187f48c238bb2f7d332f72871250a8c4a38c9f9e (diff)
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>
Diffstat (limited to 'dist')
-rw-r--r--dist/clang/patches/bug32018_workaround-llvm-tblgen-crash-during-mingw-build.patch8
1 files changed, 5 insertions, 3 deletions
diff --git a/dist/clang/patches/bug32018_workaround-llvm-tblgen-crash-during-mingw-build.patch b/dist/clang/patches/bug32018_workaround-llvm-tblgen-crash-during-mingw-build.patch
index 68f5cf59d2..752ae87a5d 100644
--- a/dist/clang/patches/bug32018_workaround-llvm-tblgen-crash-during-mingw-build.patch
+++ b/dist/clang/patches/bug32018_workaround-llvm-tblgen-crash-during-mingw-build.patch
@@ -1,10 +1,12 @@
diff --git a/utils/TableGen/CMakeLists.txt b/utils/TableGen/CMakeLists.txt
-index 604e3f1..7632bc5 100644
+index 604e3f1..4e5874c 100644
--- a/utils/TableGen/CMakeLists.txt
+++ b/utils/TableGen/CMakeLists.txt
-@@ -1,4 +1,5 @@
+@@ -1,4 +1,7 @@
set(LLVM_LINK_COMPONENTS Support)
-+set(CMAKE_BUILD_TYPE "Debug")
++if (MINGW)
++ set(CMAKE_BUILD_TYPE "Debug")
++endif()
add_tablegen(llvm-tblgen LLVM
AsmMatcherEmitter.cpp