forked from qt-creator/qt-creator
Under windows you cannot mix debug and release builds. So we require that clang is build as debug if the creator is build in debug. Change-Id: Ie46a1f13d83a7afbf81129ed75d0519fa9f5268d Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
28 lines
667 B
Prolog
28 lines
667 B
Prolog
QTC_LIB_DEPENDS += \
|
|
clangbackendipc
|
|
|
|
include(../../qtcreatortool.pri)
|
|
include(../../shared/clang/clang_installation.pri)
|
|
include(source/clangrefactoringbackend-source.pri)
|
|
|
|
win32 {
|
|
LLVM_BUILDMODE = $$system($$llvm_config --build-mode, lines)
|
|
CONFIG(debug, debug|release):requires(equals(LLVM_BUILDMODE, "Debug"))
|
|
}
|
|
|
|
QT += core network
|
|
QT -= gui
|
|
|
|
LIBS += $$LIBTOOLING_LIBS
|
|
INCLUDEPATH += $$LLVM_INCLUDEPATH
|
|
|
|
QMAKE_CXXFLAGS += $$QMAKE_CXXFLAGS_RTTI_OFF $$LLVM_CXXFLAGS
|
|
|
|
SOURCES += \
|
|
clangrefactoringbackendmain.cpp
|
|
|
|
unix {
|
|
!osx: QMAKE_LFLAGS += -Wl,-z,origin
|
|
!disable_external_rpath: QMAKE_LFLAGS += -Wl,-rpath,$$shell_quote($${LLVM_LIBDIR})
|
|
}
|