Commit a5de1220 authored by Daniel Teske's avatar Daniel Teske
Browse files

QtVersion: Pass on all qmake properties to the ProFileParser

Task-number: QTCREATORBUG-6896

Change-Id: I30a9f9013d91f0cc4937ec376f63d408133ba40c
Reviewed-by: default avatarOswald Buddenhagen <>
(cherry picked from commit be1afbd6

Reviewed-by: default avatarKai Koehne <>
parent 7c88978e
......@@ -1106,28 +1106,9 @@ bool BaseQtVersion::queryQMakeVariables(const Utils::FileName &binary, QHash<QSt
*qmakeIsExecutable = qmake.exists() && qmake.isExecutable() && !qmake.isDir();
if (!*qmakeIsExecutable)
return false;
static const char * const variables[] = {
const QString queryArg = QLatin1String("-query");
QStringList args;
for (uint i = 0; i < sizeof variables / sizeof variables[0]; ++i)
args << queryArg << QLatin1String(variables[i]);
QProcess process;
process.start(qmake.absoluteFilePath(), args, QIODevice::ReadOnly);
process.start(qmake.absoluteFilePath(), QStringList(QLatin1String("-query")), QIODevice::ReadOnly);
if (!process.waitForStarted()) {
*qmakeIsExecutable = false;
qWarning("Cannot start '%s': %s", qPrintable(binary.toUserOutput()), qPrintable(process.errorString()));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment