diff options
author | Eli Bendersky <eliben@chromium.org> | 2013-07-18 17:39:24 -0700 |
---|---|---|
committer | Eli Bendersky <eliben@chromium.org> | 2013-07-18 17:39:24 -0700 |
commit | 4a9f2a703db400ccf760f34101bcdd57642f96e4 (patch) | |
tree | f524d70ee6f2cf990c30f157e2f6f7c7a71816ed /lib/Support/Unix/Program.inc | |
parent | 2f90dcad71d5a9ebc3ea2b7287eeb7731f9044b7 (diff) |
Some more OS-specific calls were added that are not supported in the
sandboxed build. Condition them properly on __native_client__.
Diffstat (limited to 'lib/Support/Unix/Program.inc')
-rw-r--r-- | lib/Support/Unix/Program.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Support/Unix/Program.inc b/lib/Support/Unix/Program.inc index c6cc698e9b..576629794b 100644 --- a/lib/Support/Unix/Program.inc +++ b/lib/Support/Unix/Program.inc @@ -435,7 +435,11 @@ error_code Program::ChangeStderrToBinary(){ } bool llvm::sys::argumentsFitWithinSystemLimits(ArrayRef<const char*> Args) { +#if defined(__native_client__) + static long ArgMax = -1; +#else // !__native_client__ static long ArgMax = sysconf(_SC_ARG_MAX); +#endif // __native_client__ // System says no practical limit. if (ArgMax == -1) |