forked from qt-creator/qt-creator
GCC: Do not always append space to display name
Change-Id: Ia766a4835e24f49152b4bc7fbab2d154b028510c Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
a4e442ecb7
commit
3ae0b2eeaf
@@ -367,7 +367,7 @@ QString GccToolChain::defaultDisplayName() const
|
||||
QString type = typeDisplayName();
|
||||
const QRegularExpression regexp(binaryRegexp);
|
||||
const QRegularExpressionMatch match = regexp.match(m_compilerCommand.fileName());
|
||||
if (match.hasMatch())
|
||||
if (match.lastCapturedIndex() >= 1)
|
||||
type += ' ' + match.captured(1);
|
||||
if (m_targetAbi.architecture() == Abi::UnknownArchitecture || m_targetAbi.wordWidth() == 0)
|
||||
return type;
|
||||
|
Reference in New Issue
Block a user