forked from qt-creator/qt-creator
Clang: Fix compilation on Windows
...for LLVM snapshots (http://llvm.org/builds). Check for lib/libclang.* if lib/clang.* is not found. Change-Id: I6e24ac0fe696153626ded1ed3a7db85ce8d7b0f2 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
@@ -35,10 +35,19 @@ defineReplace(findLLVMConfig) {
|
||||
|
||||
win32 {
|
||||
LLVM_INCLUDEPATH = $$LLVM_INSTALL_DIR/include
|
||||
LLVM_LIBS = -L$$LLVM_INSTALL_DIR/bin \
|
||||
exists ($${LLVM_INSTALL_DIR}/lib/clang.*) {
|
||||
CLANG_LIB = clang
|
||||
} else {
|
||||
exists ($${LLVM_INSTALL_DIR}/lib/libclang.*) {
|
||||
CLANG_LIB = libclang
|
||||
} else {
|
||||
error("Cannot find Clang shared library!")
|
||||
}
|
||||
}
|
||||
LLVM_LIBS = \
|
||||
-L$$LLVM_INSTALL_DIR/bin \
|
||||
-L$$LLVM_INSTALL_DIR/lib \
|
||||
-lclang
|
||||
|
||||
-l$${CLANG_LIB}
|
||||
LLVM_LIBS += -ladvapi32 -lshell32
|
||||
}
|
||||
|
||||
|
||||
@@ -32,11 +32,12 @@
|
||||
|
||||
#ifdef WITH_TESTS
|
||||
|
||||
#include "../clangcompleter.h"
|
||||
|
||||
#include <QObject>
|
||||
#include <QTextDocument>
|
||||
#include <texteditor/basetexteditor.h>
|
||||
#include <cplusplus/CppDocument.h>
|
||||
#include <clangcompleter.h>
|
||||
|
||||
namespace TextEditor { class IAssistProposal; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user