From f02dddb6c8f2bf0a59203394bb379d369c9ece11 Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Tue, 29 Nov 2016 12:53:01 +0100 Subject: 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 Reviewed-by: Tim Jenssen --- src/plugins/plugins.pro | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/plugins/plugins.pro') diff --git a/src/plugins/plugins.pro b/src/plugins/plugins.pro index e4ca70b6258..0980a4c49a1 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.") -- cgit v1.2.3