aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/plugins.pro
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@qt.io>2016-11-29 12:53:01 +0100
committerMarco Bubke <marco.bubke@qt.io>2016-12-07 11:38:37 +0000
commitf02dddb6c8f2bf0a59203394bb379d369c9ece11 (patch)
tree70d478ac1d9bb40c6035266f66a96510132d7dd9 /src/plugins/plugins.pro
parentd2f615dca594ec2e152cbfb219c47f45e8741630 (diff)
Clang: Add flag to disable Clang LibTooling
Because of C++ linking problems we introduce QTC_NO_CLANG_LIBTOOLING as a workaround to disable Clang LibTooling. Use QTC_NO_CLANG_LIBTOOLING=something to disable it. Change-Id: I2dc9947d69d94292e08dacb1558bef56f5ebbbe3 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/plugins/plugins.pro')
-rw-r--r--src/plugins/plugins.pro8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/plugins/plugins.pro b/src/plugins/plugins.pro
index e4ca70b625..0980a4c49a 100644
--- a/src/plugins/plugins.pro
+++ b/src/plugins/plugins.pro
@@ -76,7 +76,13 @@ exists(../shared/qbs/qbs.pro)|!isEmpty(QBS_INSTALL_DIR): \
isEmpty(LLVM_INSTALL_DIR):LLVM_INSTALL_DIR=$$(LLVM_INSTALL_DIR)
exists($$LLVM_INSTALL_DIR) {
SUBDIRS += clangcodemodel
-# SUBDIRS += clangrefactoring
+
+ QTC_NO_CLANG_LIBTOOLING=$$(QTC_NO_CLANG_LIBTOOLING)
+ isEmpty($$QTC_NO_CLANG_LIBTOOLING) {
+ SUBDIRS += clangrefactoring
+ } else {
+ warning("Building the Clang refactoring plugin is disabled.")
+ }
} else {
warning("Set LLVM_INSTALL_DIR to build the Clang Code Model. " \
"For details, see doc/src/editors/creator-clang-codemodel.qdoc.")