Clang: Fix build with LibTooling

Do not build plugins when the tools part is not built.

Change-Id: I3325707fe6446364f07a9ad5e5e039fc9fb6437d
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
Ivan Donchevskii
2018-09-13 14:18:27 +02:00
parent 2c4dadccb6
commit 5b454c95fc
3 changed files with 11 additions and 1 deletions

View File

@@ -6,6 +6,11 @@ include(../../shared/clang/clang_defines.pri)
requires(!isEmpty(LIBTOOLING_LIBS))
win32 {
LLVM_BUILDMODE = $$system($$llvm_config --build-mode, lines)
CONFIG(debug, debug|release):requires(equals(LLVM_BUILDMODE, "Debug"))
}
HEADERS += \
clangrefactoringplugin.h \
baseclangquerytexteditorwidget.h \