diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-04-23 07:22:51 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-04-23 07:22:51 +0000 |
commit | 2e40d0329065d2744b5ed2abfe20c549c9d3f5e2 (patch) | |
tree | 9a2c6baeba48b9112f637ebb8190b5d5c3491731 /lib | |
parent | 0a2cdb687bc9fb784787f97e0cc1be5d02068a8b (diff) | |
download | external_llvm-2e40d0329065d2744b5ed2abfe20c549c9d3f5e2.zip external_llvm-2e40d0329065d2744b5ed2abfe20c549c9d3f5e2.tar.gz external_llvm-2e40d0329065d2744b5ed2abfe20c549c9d3f5e2.tar.bz2 |
Cygwin doesn't have the RSS_LIMIT for get/setrlimit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36361 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/System/Unix/Program.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/System/Unix/Program.inc b/lib/System/Unix/Program.inc index 77d74a1..1fe2586 100644 --- a/lib/System/Unix/Program.inc +++ b/lib/System/Unix/Program.inc @@ -119,10 +119,12 @@ static void SetMemoryLimits (unsigned size) getrlimit (RLIMIT_DATA, &r); r.rlim_cur = limit; setrlimit (RLIMIT_DATA, &r); +#ifndef __CYGWIN__ // Resident set size. getrlimit (RLIMIT_RSS, &r); r.rlim_cur = limit; setrlimit (RLIMIT_RSS, &r); +#endif // Virtual memory. getrlimit (RLIMIT_AS, &r); r.rlim_cur = limit; |