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:
Orgad Shaneh
2017-07-25 23:47:16 +03:00
committed by Orgad Shaneh
parent a4e442ecb7
commit 3ae0b2eeaf

View File

@@ -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;