summaryrefslogtreecommitdiffstats
path: root/qmake/generators
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2021-10-22 15:38:47 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-10-25 22:51:32 +0000
commit2540bff0706b8fccb652283b64594b227c8b1a4f (patch)
treee2464d7d54d17ea476d8af2e612c67cd969c5c1b /qmake/generators
parentf2b0d0c0838d66446a1d3f742059f67c38a9930f (diff)
qmake/vcxproj: Fix malformed <Message> tags
Extra compilers and the command set to "\n" would result in malformed <Message> tags in vcxproj files. Those tags are used to display the name of the extra compiler when building. Setting the extra compiler's command to "\n" is a common trick to force the creation of the rule. Make sure to trim the command name that is created from the extra compiler's command to avoid such new-line-only bogus message tags. Change-Id: I1bae28ed14c438d777f96280c6b2cf5ca315b51c Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 1a44090df533de10d456f82bcbac61dd5ae66831) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'qmake/generators')
-rw-r--r--qmake/generators/win32/msvc_objectmodel.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qmake/generators/win32/msvc_objectmodel.cpp b/qmake/generators/win32/msvc_objectmodel.cpp
index bd35f60630..e7478046ce 100644
--- a/qmake/generators/win32/msvc_objectmodel.cpp
+++ b/qmake/generators/win32/msvc_objectmodel.cpp
@@ -2436,6 +2436,7 @@ bool VCFilter::addExtraCompiler(const VCFilterFile &info)
cmd_name = cmd.left(space);
else
cmd_name = cmd;
+ cmd_name = cmd_name.trimmed();
}
// Fixify paths