forked from qt-creator/qt-creator
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:
@@ -5,6 +5,11 @@ include(../../shared/clang/clang_defines.pri)
|
|||||||
|
|
||||||
requires(!isEmpty(LIBTOOLING_LIBS))
|
requires(!isEmpty(LIBTOOLING_LIBS))
|
||||||
|
|
||||||
|
win32 {
|
||||||
|
LLVM_BUILDMODE = $$system($$llvm_config --build-mode, lines)
|
||||||
|
CONFIG(debug, debug|release):requires(equals(LLVM_BUILDMODE, "Debug"))
|
||||||
|
}
|
||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
$$PWD/clangpchmanagerplugin.h \
|
$$PWD/clangpchmanagerplugin.h \
|
||||||
qtcreatorprojectupdater.h
|
qtcreatorprojectupdater.h
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ Utils::SmallStringVector ProjectUpdater::createIncludeSearchPaths(
|
|||||||
Utils::SmallStringVector includePaths;
|
Utils::SmallStringVector includePaths;
|
||||||
|
|
||||||
for (const ProjectExplorer::HeaderPath &projectPartHeaderPath : projectPartHeaderPaths) {
|
for (const ProjectExplorer::HeaderPath &projectPartHeaderPath : projectPartHeaderPaths) {
|
||||||
if (projectPartHeaderPath.isValid())
|
if (!projectPartHeaderPath.path.isEmpty())
|
||||||
includePaths.emplace_back(projectPartHeaderPath.path);
|
includePaths.emplace_back(projectPartHeaderPath.path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,11 @@ include(../../shared/clang/clang_defines.pri)
|
|||||||
|
|
||||||
requires(!isEmpty(LIBTOOLING_LIBS))
|
requires(!isEmpty(LIBTOOLING_LIBS))
|
||||||
|
|
||||||
|
win32 {
|
||||||
|
LLVM_BUILDMODE = $$system($$llvm_config --build-mode, lines)
|
||||||
|
CONFIG(debug, debug|release):requires(equals(LLVM_BUILDMODE, "Debug"))
|
||||||
|
}
|
||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
clangrefactoringplugin.h \
|
clangrefactoringplugin.h \
|
||||||
baseclangquerytexteditorwidget.h \
|
baseclangquerytexteditorwidget.h \
|
||||||
|
|||||||
Reference in New Issue
Block a user