Ninja: Detect command-line length limit on Haiku

This commit is contained in:
Adrien Destugues 2014-03-03 15:47:08 +01:00 committed by Brad King
parent 581abf6d31
commit 6c90f0a693
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