Commit cca9d69f authored by Tobias Hunger's avatar Tobias Hunger
Browse files

GCCE: Do not pick up bullseye as GCCE

Do not pick up bullseye as a GCCE.

Task-number: QTCREATORBUG-4608
parent ec671290
......@@ -72,8 +72,9 @@ static QString gcceVersion(const QString &command)
return QString();
if (gxx.canReadLine())
return gxx.readLine().trimmed();
QString version = QString::fromLocal8Bit(gxx.readLine().trimmed());
if (version.contains(QRegExp("^\\d+\\.\\d+\\.\\d+.*$")))
return version;
return QString();
......@@ -182,10 +183,12 @@ QList<ProjectExplorer::ToolChain *> GcceToolChainFactory::autoDetect()
QString fullPath = Utils::Environment::systemEnvironment().searchInPath(QLatin1String("arm-none-symbianelf-gcc"));
if (!fullPath.isEmpty()) {
QString version = gcceVersion(fullPath);
// If version is empty then this is not a GCC but e.g. bullseye!
if (!fullPath.isEmpty() && !version.isEmpty()) {
GcceToolChain *tc = new GcceToolChain(true);
tc->setDisplayName(tr("GCCE (%1)").arg(gcceVersion(fullPath)));
tc->setDisplayName(tr("GCCE (%1)").arg(version));
if (tc->targetAbi() == ProjectExplorer::Abi(ProjectExplorer::Abi::ArmArchitecture,
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