diff options
author | Adrien Destugues <pulkomandy@pulkomandy.tk> | 2014-03-03 14:47:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-03-10 13:42:38 (GMT) |
commit | 6c90f0a6938cf2ed2190db34ebc918a9e29fe4bf (patch) | |
tree | 7ba44729f3b735ed8d7d4e2a5e8dbc08335b36e6 /Source/cmNinjaNormalTargetGenerator.cxx | |
parent | 581abf6d312614cf1d01f86d7f4feba344252422 (diff) | |
download | CMake-6c90f0a6938cf2ed2190db34ebc918a9e29fe4bf.zip CMake-6c90f0a6938cf2ed2190db34ebc918a9e29fe4bf.tar.gz CMake-6c90f0a6938cf2ed2190db34ebc918a9e29fe4bf.tar.bz2 |
Ninja: Detect command-line length limit on Haiku
Diffstat (limited to 'Source/cmNinjaNormalTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaNormalTargetGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx index a49fc2d..c24c5e0 100644 --- a/Source/cmNinjaNormalTargetGenerator.cxx +++ b/Source/cmNinjaNormalTargetGenerator.cxx @@ -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 |