Merge topic 'ninja-portable-arg-max'
5ec17e61
Ninja: Generalize check for sysconf(3) call
This commit is contained in:
commit
b224f43120
|
@ -374,7 +374,7 @@ static int calculateCommandLineLengthLimit(int linkRuleLength)
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
8000,
|
8000,
|
||||||
#endif
|
#endif
|
||||||
#if defined(__APPLE__) || defined(__HAIKU__) || defined(__linux)
|
#if defined(_SC_ARG_MAX)
|
||||||
// for instance ARG_MAX is 2096152 on Ubuntu or 262144 on Mac
|
// for instance ARG_MAX is 2096152 on Ubuntu or 262144 on Mac
|
||||||
((int)sysconf(_SC_ARG_MAX)) - 1000,
|
((int)sysconf(_SC_ARG_MAX)) - 1000,
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue