Commit a4e442ec authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

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

Change-Id: I750d7fd369a941a5f8837bddb01714541742a46e
Reviewed-by: Tobias Hunger's avatarTobias Hunger <tobias.hunger@qt.io>
parent 5d8b0e63
......@@ -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,
......
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