summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorPeter Kümmel <syntheticpp@gmx.net>2012-07-11 08:11:01 (GMT)
committerPeter Kümmel <syntheticpp@gmx.net>2012-07-11 08:11:01 (GMT)
commitbb3675999f26af14c25e652f9c614432156f3526 (patch)
treece353d5401f95c0d0122bbd3f1df64eb15d6181e /Source
parent3a2c8e8e666ebf63c20d933cc255237a18153867 (diff)
downloadCMake-bb3675999f26af14c25e652f9c614432156f3526.zip
CMake-bb3675999f26af14c25e652f9c614432156f3526.tar.gz
CMake-bb3675999f26af14c25e652f9c614432156f3526.tar.bz2
Ninja: enable response file support on Mac (length 262144)
Diffstat (limited to 'Source')
-rw-r--r--Source/cmNinjaNormalTargetGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx
index f6f235c..3e5ac41 100644
--- a/Source/cmNinjaNormalTargetGenerator.cxx
+++ b/Source/cmNinjaNormalTargetGenerator.cxx
@@ -488,8 +488,8 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
GetRuleCmdLength(this->LanguageLinkerRule());
#ifdef _WIN32
int commandLineLengthLimit = 8000 - linkRuleLength;
-#elif __linux
- // for instance ARG_MAX is 2096152 on Ubuntu
+#elif defined(__linux) || defined(__APPLE__)
+ // for instance ARG_MAX is 2096152 on Ubuntu or 262144 on Mac
int commandLineLengthLimit = sysconf(_SC_ARG_MAX) - linkRuleLength - 1000;
#else
int commandLineLengthLimit = -1;