Merge topic 'ninja-command-line-length-haiku'

6c90f0a6 Ninja: Detect command-line length limit on Haiku
This commit is contained in:
Brad King 2014-03-11 09:14:03 -04:00 committed by CMake Topic Stage
commit 312a6b7bde
1 changed files with 1 additions and 1 deletions

View File

@ -591,7 +591,7 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
cmSystemTools::GetEnv(forceRspFile) == 0) {
#ifdef _WIN32
commandLineLengthLimit = 8000 - linkRuleLength;
#elif defined(__linux) || defined(__APPLE__)
#elif defined(__linux) || defined(__APPLE__) || defined(__HAIKU__)
// for instance ARG_MAX is 2096152 on Ubuntu or 262144 on Mac
commandLineLengthLimit = ((int)sysconf(_SC_ARG_MAX))-linkRuleLength-1000;
#else