Merge topic 'ninja-no-accidental-rsp'

86dd2427 Ninja: Do not force response files when no sysconf(3) limit is used
This commit is contained in:
Brad King 2016-07-18 08:57:30 -04:00 committed by CMake Topic Stage
commit d0be658205
1 changed files with 1 additions and 1 deletions

View File

@ -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;