forked from qt-creator/qt-creator
Clang: Temporary workaround for VS 2015 Update 2
We disable older Visual Studio compilers because they have bugs. This patch has to be reverted after we go to VS 2015 Update 3. Change-Id: I2c6eecab993282b24003ceb99a991a72502057f6 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -77,12 +77,15 @@ isEmpty(LLVM_INSTALL_DIR):LLVM_INSTALL_DIR=$$(LLVM_INSTALL_DIR)
|
||||
exists($$LLVM_INSTALL_DIR) {
|
||||
SUBDIRS += clangcodemodel
|
||||
|
||||
win32-msvc*:equals(QT_CL_MAJOR_VERSION, 19):equals(QT_CL_MINOR_VERSION, 00): \
|
||||
greaterThan(QT_CL_PATCH_VERSION, 24209) {
|
||||
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.")
|
||||
|
@@ -22,6 +22,8 @@ isEmpty(LLVM_INSTALL_DIR):LLVM_INSTALL_DIR=$$(LLVM_INSTALL_DIR)
|
||||
exists($$LLVM_INSTALL_DIR) {
|
||||
SUBDIRS += clangbackend
|
||||
|
||||
win32-msvc*:equals(QT_CL_MAJOR_VERSION, 19):equals(QT_CL_MINOR_VERSION, 00): \
|
||||
greaterThan(QT_CL_PATCH_VERSION, 24209) {
|
||||
QTC_NO_CLANG_LIBTOOLING=$$(QTC_NO_CLANG_LIBTOOLING)
|
||||
!isEmpty($$QTC_NO_CLANG_LIBTOOLING) {
|
||||
SUBDIRS += clangrefactoringbackend
|
||||
@@ -29,6 +31,7 @@ exists($$LLVM_INSTALL_DIR) {
|
||||
warning("Building the Clang refactoring back end is disabled.")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
isEmpty(BUILD_CPLUSPLUS_TOOLS):BUILD_CPLUSPLUS_TOOLS=$$(BUILD_CPLUSPLUS_TOOLS)
|
||||
!isEmpty(BUILD_CPLUSPLUS_TOOLS) {
|
||||
|
Reference in New Issue
Block a user