forked from qt-creator/qt-creator
Using llvm_config --cxxflags can be potential dangerous. We should test every configuration if it is compiling. It has the advantage that we don't need to care anymore about incompatible flags to the used clang version. Change-Id: I3bbddb1935dca9896c64ebafd1fbe72840db8bd4 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
28 lines
641 B
Prolog
28 lines
641 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 += $$LLVM_CXXFLAGS
|
|
|
|
SOURCES += \
|
|
clangrefactoringbackendmain.cpp
|
|
|
|
unix {
|
|
!osx: QMAKE_LFLAGS += -Wl,-z,origin
|
|
!disable_external_rpath: QMAKE_LFLAGS += -Wl,-rpath,$$shell_quote($${LLVM_LIBDIR})
|
|
}
|