summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaNormalTargetGenerator.cxx
diff options
context:
space:
mode:
authorPeter Kuemmel <syntheticpp@gmx.net>2012-07-02 08:30:29 (GMT)
committerPeter Kuemmel <syntheticpp@gmx.net>2012-07-02 08:30:29 (GMT)
commit6332ba5a58f0114d1763c263950eae20b09eaa4b (patch)
tree530ba40ba8ccf5c82ed431f67f5abb2bb9e175df /Source/cmNinjaNormalTargetGenerator.cxx
parent0c42faf63acadf320ea6371d42d03386e1c20176 (diff)
downloadCMake-6332ba5a58f0114d1763c263950eae20b09eaa4b.zip
CMake-6332ba5a58f0114d1763c263950eae20b09eaa4b.tar.gz
CMake-6332ba5a58f0114d1763c263950eae20b09eaa4b.tar.bz2
Ninja: also consider rule command length for rsp file
Diffstat (limited to 'Source/cmNinjaNormalTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaNormalTargetGenerator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx
index 01e8e73..6befb05 100644
--- a/Source/cmNinjaNormalTargetGenerator.cxx
+++ b/Source/cmNinjaNormalTargetGenerator.cxx
@@ -480,7 +480,8 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
int cmdLineLimit;
#ifdef _WIN32
- cmdLineLimit = 8000;
+ cmdLineLimit = 8000 - this->GetGlobalGenerator()->
+ GetRuleCmdLength(this->LanguageLinkerRule());
#else
cmdLineLimit = -1; // TODO
#endif