Merge topic 'ninja-command-line-length-haiku'
6c90f0a6
Ninja: Detect command-line length limit on Haiku
This commit is contained in:
commit
312a6b7bde
|
@ -591,7 +591,7 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
|
||||||
cmSystemTools::GetEnv(forceRspFile) == 0) {
|
cmSystemTools::GetEnv(forceRspFile) == 0) {
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
commandLineLengthLimit = 8000 - linkRuleLength;
|
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
|
// for instance ARG_MAX is 2096152 on Ubuntu or 262144 on Mac
|
||||||
commandLineLengthLimit = ((int)sysconf(_SC_ARG_MAX))-linkRuleLength-1000;
|
commandLineLengthLimit = ((int)sysconf(_SC_ARG_MAX))-linkRuleLength-1000;
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue