Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 21a0c9e

Browse files
committed
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 7f235a5 commit 21a0c9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Support/Unix/Program.inc

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

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

0 commit comments

Comments
 (0)