summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaNormalTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-07-18 12:57:30 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-07-18 12:57:30 (GMT)
commitd0be6582057c71f1aaf4d313d4446ae29f56add3 (patch)
tree959616f4f73224d54ad3cf5852a038fbef25931d /Source/cmNinjaNormalTargetGenerator.cxx
parentb224f431206339bd8cbff22b6948f30c28c87406 (diff)
parent86dd2427bcb7cd1d912fc802f70b15556e776d62 (diff)
downloadCMake-d0be6582057c71f1aaf4d313d4446ae29f56add3.zip
CMake-d0be6582057c71f1aaf4d313d4446ae29f56add3.tar.gz
CMake-d0be6582057c71f1aaf4d313d4446ae29f56add3.tar.bz2
Merge topic 'ninja-no-accidental-rsp'
86dd2427 Ninja: Do not force response files when no sysconf(3) limit is used
Diffstat (limited to 'Source/cmNinjaNormalTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaNormalTargetGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx
index 1e83722..7644df3 100644
--- a/Source/cmNinjaNormalTargetGenerator.cxx
+++ b/Source/cmNinjaNormalTargetGenerator.cxx
@@ -388,7 +388,7 @@ static int calculateCommandLineLengthLimit(int linkRuleLength)
size_t const arrSz = cmArraySize(limits);
int const sz = *std::min_element(limits, limits + arrSz);
if (sz == std::numeric_limits<int>::max()) {
- return -1;
+ return 0;
}
return sz - linkRuleLength;