Commit 0c6568af authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Quiten debug messages

 * Simplify logic while at it, too.
parent cd2a0231
......@@ -167,7 +167,7 @@ QString GCCEToolChain::gcceVersion() const
return QString();
QProcess gxx;
QStringList arguments;
arguments << QLatin1String("--version");
arguments << QLatin1String("-dumpversion");
ProjectExplorer::Environment env = ProjectExplorer::Environment::systemEnvironment();
env.set(QLatin1String("LC_ALL"), QLatin1String("C")); //override current locale settings
gxx.setEnvironment(env.toStringList());
......@@ -179,12 +179,7 @@ QString GCCEToolChain::gcceVersion() const
QString line;
if (gxx.canReadLine()) {
line = gxx.readLine();
qDebug() << "GCCVersion:" << line;
QRegExp version("\\s((\\d+)\\.(\\d+)\\.(\\d+))\\s");
if (line.indexOf(version) >= -1) {
qDebug() << " MATCHED!";
m_gcceVersion = version.cap(1);
}
m_gcceVersion = line.trimmed();
}
}
return m_gcceVersion;
......
Markdown is supported
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