summaryrefslogtreecommitdiffstats
path: root/qmake/generators/makefile.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2020-06-05 18:59:01 +0300
committerOrgad Shaneh <orgads@gmail.com>2020-07-06 13:41:37 +0000
commit4c20a35cd93315dfefc06d87dbd74e9c0c0c5eff (patch)
treed28b08592be42e863d03ca1b0f68644eaf34c3d9 /qmake/generators/makefile.cpp
parent1f0299b029eadc988872dc6b0bc27e78a625c871 (diff)
MinGW: Use a response file for long include paths
Change-Id: I55ce73ad08473bca27c7ab5730f633fb77c9b8cd Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'qmake/generators/makefile.cpp')
-rw-r--r--qmake/generators/makefile.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/qmake/generators/makefile.cpp b/qmake/generators/makefile.cpp
index f6f4edef9d..dfe9a1c0b9 100644
--- a/qmake/generators/makefile.cpp
+++ b/qmake/generators/makefile.cpp
@@ -3456,7 +3456,10 @@ ProKey MakefileGenerator::fullTargetVariable() const
return "TARGET";
}
-QString MakefileGenerator::createResponseFile(const QString &baseName, const ProStringList &objList)
+QString MakefileGenerator::createResponseFile(
+ const QString &baseName,
+ const ProStringList &objList,
+ const QString &prefix)
{
QString fileName = baseName + '.' + fileVar("QMAKE_ORIG_TARGET");
if (!var("BUILD_NAME").isEmpty())
@@ -3479,7 +3482,7 @@ QString MakefileGenerator::createResponseFile(const QString &baseName, const Pro
.replace(QLatin1Char('\t'), QLatin1String("\\\t"))
.replace(QLatin1Char('"'), QLatin1String("\\\""))
.replace(QLatin1Char('\''), QLatin1String("\\'"));
- t << path << Qt::endl;
+ t << prefix << path << Qt::endl;
}
t.flush();
file.close();