GCC: Test for actually used ABI attributes instead of isValid()

Change-Id: I750d7fd369a941a5f8837bddb01714541742a46e
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Orgad Shaneh
2017-07-26 22:41:43 +03:00
committed by Orgad Shaneh
parent 5d8b0e6352
commit a4e442ecb7

View File

@@ -369,7 +369,7 @@ QString GccToolChain::defaultDisplayName() const
const QRegularExpressionMatch match = regexp.match(m_compilerCommand.fileName());
if (match.hasMatch())
type += ' ' + match.captured(1);
if (!m_targetAbi.isValid())
if (m_targetAbi.architecture() == Abi::UnknownArchitecture || m_targetAbi.wordWidth() == 0)
return type;
return QCoreApplication::translate("ProjectExplorer::GccToolChain",
"%1 (%2, %3 %4 in %5)").arg(type,