Commit 3ae0b2ee authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

GCC: Do not always append space to display name

Change-Id: Ia766a4835e24f49152b4bc7fbab2d154b028510c
Reviewed-by: Tobias Hunger's avatarTobias Hunger <tobias.hunger@qt.io>
parent a4e442ec
......@@ -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;
......
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