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

Commit

Permalink
Fix compile on dist-x86_64-linux builder
Browse files Browse the repository at this point in the history
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
  • Loading branch information
alexcrichton committed Aug 2, 2018
1 parent e993e94 commit e19f07f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Support/Unix/Program.inc
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ bool llvm::sys::commandLineFitsWithinSystemLimits(StringRef Program,
static long ArgMax = sysconf(_SC_ARG_MAX);
// POSIX requires that _POSIX_ARG_MAX is 4096, which is the lowest possible
// value for ARG_MAX on a POSIX compliant system.
static long ArgMin = _POSIX_ARG_MAX;
static long ArgMin = 4096;

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

0 comments on commit e19f07f

Please sign in to comment.