diff options
author | Brad King <brad.king@kitware.com> | 2016-07-18 12:57:30 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-07-18 12:57:30 (GMT) |
commit | d0be6582057c71f1aaf4d313d4446ae29f56add3 (patch) | |
tree | 959616f4f73224d54ad3cf5852a038fbef25931d /Source/cmNinjaNormalTargetGenerator.cxx | |
parent | b224f431206339bd8cbff22b6948f30c28c87406 (diff) | |
parent | 86dd2427bcb7cd1d912fc802f70b15556e776d62 (diff) | |
download | CMake-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.cxx | 2 |
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; |