forked from qt-creator/qt-creator
C++: Fix build with BUILD_CPLUSPLUS_TOOLS
Change-Id: If55b14f82752e19f536429ee44688156cd0a84da Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -38,6 +38,8 @@
|
||||
#include <cplusplus/Symbols.h>
|
||||
#include <cplusplus/TranslationUnit.h>
|
||||
|
||||
#include <utils/hostosinfo.h>
|
||||
|
||||
#include "utils.h"
|
||||
|
||||
#include <QDir>
|
||||
@@ -361,7 +363,7 @@ private:
|
||||
|
||||
static void createImageFromDot(const QString &inputFile, const QString &outputFile, bool verbose)
|
||||
{
|
||||
const QString command = CplusplusToolsUtils::portableExecutableName(QLatin1String("dot"));
|
||||
const QString command = Utils::HostOsInfo::withExecutableSuffix("dot");
|
||||
const QStringList arguments = QStringList({"-Tpng", "-o", outputFile, inputFile});
|
||||
CplusplusToolsUtils::executeCommand(command, arguments, QString(), verbose);
|
||||
}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
QTC_LIB_DEPENDS += cplusplus
|
||||
QTC_LIB_DEPENDS += cplusplus utils
|
||||
|
||||
include(../../../qtcreator.pri)
|
||||
|
||||
|
@@ -31,7 +31,6 @@
|
||||
|
||||
namespace CplusplusToolsUtils {
|
||||
|
||||
QString portableExecutableName(const QString &executable);
|
||||
void executeCommand(const QString &command, const QStringList &arguments, const QString &outputFile,
|
||||
bool verbose = false);
|
||||
|
||||
|
Reference in New Issue
Block a user