From 2e40d0329065d2744b5ed2abfe20c549c9d3f5e2 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Mon, 23 Apr 2007 07:22:51 +0000 Subject: 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 --- lib/System/Unix/Program.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') 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; -- cgit v1.1