summaryrefslogtreecommitdiffstats
path: root/qmake
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2022-01-04 14:30:46 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-01-26 12:53:20 +0000
commit9f3099d259759f1eff31ec71e830cd405f4ee589 (patch)
treef27559320891c58f0ecc85bdba37633b370a4f71 /qmake
parentfafc1d1264039be09088afd86af650f70bf55c56 (diff)
qmake/MinGW: Fix linking target name with whitespace
When having a TARGET value that contains whitespace, linking would fail with MinGW. This was, because the function createResponseFile stitched together a file name like this: objectScript."Target Name".Release The inner double quotes make the file name invalid. Fix this by retrieving QMAKE_ORIG_TARGET with the var() method instead of fileVar(). The latter quotes the return value if it contains spaces. Fixes: QTBUG-99522 Change-Id: Ieb7dcf3fbbd8a75de5a9b9a6beadb2170dddf35d Reviewed-by: Kai Koehne <kai.koehne@qt.io> (cherry picked from commit 7246058dfd7511e5732a6d74521ce4a717c73f70) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'qmake')
-rw-r--r--qmake/generators/makefile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qmake/generators/makefile.cpp b/qmake/generators/makefile.cpp
index 5a17a92425..53d50f23f9 100644
--- a/qmake/generators/makefile.cpp
+++ b/qmake/generators/makefile.cpp
@@ -3497,7 +3497,7 @@ QString MakefileGenerator::createResponseFile(
const ProStringList &objList,
const QString &prefix)
{
- QString fileName = baseName + '.' + fileVar("QMAKE_ORIG_TARGET");
+ QString fileName = baseName + '.' + var("QMAKE_ORIG_TARGET");
if (!var("BUILD_NAME").isEmpty())
fileName += '.' + var("BUILD_NAME");
if (!var("MAKEFILE").isEmpty())