Skip to content

Commit a4f3260

Browse files
alexcrichtonnikic
authored andcommitted
Fix compile on dist-x86_64-linux builder
Apparently glibc is so old it doesn't have the _POSIX_ARG_MAX constant. This shouldn't affect anything we use anyway though. https://travis-ci.org/rust-lang/rust/jobs/399333071
1 parent 69cb0d1 commit a4f3260

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Support/Unix/Program.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ bool llvm::sys::commandLineFitsWithinSystemLimits(StringRef Program,
462462
static long ArgMax = sysconf(_SC_ARG_MAX);
463463
// POSIX requires that _POSIX_ARG_MAX is 4096, which is the lowest possible
464464
// value for ARG_MAX on a POSIX compliant system.
465-
static long ArgMin = _POSIX_ARG_MAX;
465+
static long ArgMin = 4096;
466466

467467
// This the same baseline used by xargs.
468468
long EffectiveArgMax = 128 * 1024;

0 commit comments

Comments
 (0)