diff options
author | Brad King <brad.king@kitware.com> | 2014-03-11 13:14:03 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-03-11 13:14:03 (GMT) |
commit | 312a6b7bde9b794655040022b8adfdd40c2b2071 (patch) | |
tree | e343d24683e2cb7e8ce97aab8a6906c096654961 /Source | |
parent | 70c6eda8c2bf36aeaf83616c860c5a6563bd88f4 (diff) | |
parent | 6c90f0a6938cf2ed2190db34ebc918a9e29fe4bf (diff) | |
download | CMake-312a6b7bde9b794655040022b8adfdd40c2b2071.zip CMake-312a6b7bde9b794655040022b8adfdd40c2b2071.tar.gz CMake-312a6b7bde9b794655040022b8adfdd40c2b2071.tar.bz2 |
Merge topic 'ninja-command-line-length-haiku'
6c90f0a6 Ninja: Detect command-line length limit on Haiku
Diffstat (limited to 'Source')
-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 |