summaryrefslogtreecommitdiffstats
path: root/qmake/generators/makefile.cpp
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2022-01-04 14:30:46 +0100
committerJoerg Bornemann <joerg.bornemann@qt.io>2022-01-08 18:08:09 +0100
commit7246058dfd7511e5732a6d74521ce4a717c73f70 (patch)
tree3cc125b69956cd02d7ea67047fffa607a1458a0c /qmake/generators/makefile.cpp
parent4545d7d6a6610119845df098fc8f0b9166961d6b (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. Pick-to: 5.15 6.2 6.3 Fixes: QTBUG-99522 Change-Id: Ieb7dcf3fbbd8a75de5a9b9a6beadb2170dddf35d Reviewed-by: Kai Koehne <kai.koehne@qt.io>
Diffstat (limited to 'qmake/generators/makefile.cpp')
-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())