mirror of
https://github.com/reactos/CMake.git
synced 2024-12-18 09:07:49 +00:00
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) {
|
||||
#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
|
||||
|
Loading…
Reference in New Issue
Block a user