forked from qt-creator/qt-creator
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:
committed by
Orgad Shaneh
parent
5d8b0e6352
commit
a4e442ecb7
@@ -369,7 +369,7 @@ QString GccToolChain::defaultDisplayName() const
|
|||||||
const QRegularExpressionMatch match = regexp.match(m_compilerCommand.fileName());
|
const QRegularExpressionMatch match = regexp.match(m_compilerCommand.fileName());
|
||||||
if (match.hasMatch())
|
if (match.hasMatch())
|
||||||
type += ' ' + match.captured(1);
|
type += ' ' + match.captured(1);
|
||||||
if (!m_targetAbi.isValid())
|
if (m_targetAbi.architecture() == Abi::UnknownArchitecture || m_targetAbi.wordWidth() == 0)
|
||||||
return type;
|
return type;
|
||||||
return QCoreApplication::translate("ProjectExplorer::GccToolChain",
|
return QCoreApplication::translate("ProjectExplorer::GccToolChain",
|
||||||
"%1 (%2, %3 %4 in %5)").arg(type,
|
"%1 (%2, %3 %4 in %5)").arg(type,
|
||||||
|
Reference in New Issue
Block a user