summaryrefslogtreecommitdiffstats
path: root/qmake/generators/win32/msvc_nmake.h
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2017-02-08 13:20:09 +0100
committerJoerg Bornemann <joerg.bornemann@qt.io>2017-02-13 14:48:15 +0000
commit1b46872cde7fb50652f55bfe1e286e6af5124200 (patch)
tree2ca9133917358b12b4afd5af47d61bc8db51374f /qmake/generators/win32/msvc_nmake.h
parent0d2791c5f64fcb7f0ce4c2027d78fc39de514ab4 (diff)
qmake/nmake: Prevent overlong lines in link and lib response files
Linking with too many object files could lead to "LNK1170: line in command file contains 131071 or more characters". Do not write all .obj files into one line but respect a limit of 1000 characters. If the limit is reached the object files are separated by newlines instead of spaces. Task-number: QTBUG-58710 Change-Id: Ibae1f737d6b614a9624b4e00cdd21d3722d341e3 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'qmake/generators/win32/msvc_nmake.h')
-rw-r--r--qmake/generators/win32/msvc_nmake.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qmake/generators/win32/msvc_nmake.h b/qmake/generators/win32/msvc_nmake.h
index 9c88934e36..f782f9d734 100644
--- a/qmake/generators/win32/msvc_nmake.h
+++ b/qmake/generators/win32/msvc_nmake.h
@@ -40,6 +40,7 @@ class NmakeMakefileGenerator : public Win32MakefileGenerator
void writeImplicitRulesPart(QTextStream &t);
void writeBuildRulesPart(QTextStream &t);
void writeLinkCommand(QTextStream &t, const QString &extraFlags = QString(), const QString &extraInlineFileContent = QString());
+ void writeResponseFileFiles(QTextStream &t, const ProStringList &files);
int msvcVersion() const;
void init();
static QStringList sourceFilesForImplicitRulesFilter();