From 3ae0b2eeaf4f3cefd7d103b784587c83d84f2189 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Tue, 25 Jul 2017 23:47:16 +0300 Subject: [PATCH] GCC: Do not always append space to display name Change-Id: Ia766a4835e24f49152b4bc7fbab2d154b028510c Reviewed-by: Tobias Hunger --- src/plugins/projectexplorer/gcctoolchain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/gcctoolchain.cpp b/src/plugins/projectexplorer/gcctoolchain.cpp index d935d10c47f..e26d6609b5c 100644 --- a/src/plugins/projectexplorer/gcctoolchain.cpp +++ b/src/plugins/projectexplorer/gcctoolchain.cpp @@ -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;