Ninja: enable response file support on Mac (length 262144)
This commit is contained in:
parent
3a2c8e8e66
commit
bb3675999f
|
@ -488,8 +488,8 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
|
||||||
GetRuleCmdLength(this->LanguageLinkerRule());
|
GetRuleCmdLength(this->LanguageLinkerRule());
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
int commandLineLengthLimit = 8000 - linkRuleLength;
|
int commandLineLengthLimit = 8000 - linkRuleLength;
|
||||||
#elif __linux
|
#elif defined(__linux) || defined(__APPLE__)
|
||||||
// for instance ARG_MAX is 2096152 on Ubuntu
|
// for instance ARG_MAX is 2096152 on Ubuntu or 262144 on Mac
|
||||||
int commandLineLengthLimit = sysconf(_SC_ARG_MAX) - linkRuleLength - 1000;
|
int commandLineLengthLimit = sysconf(_SC_ARG_MAX) - linkRuleLength - 1000;
|
||||||
#else
|
#else
|
||||||
int commandLineLengthLimit = -1;
|
int commandLineLengthLimit = -1;
|
||||||
|
|
Loading…
Reference in New Issue