mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 20:34:38 +00:00
Solaris 2.x does not have RLIMIT_RSS, check for this symbol (analog NetBSD below), should subsume Cygwin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37939 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
902919541f
commit
aa6b7fd5ec
@ -119,7 +119,7 @@ static void SetMemoryLimits (unsigned size)
|
||||
getrlimit (RLIMIT_DATA, &r);
|
||||
r.rlim_cur = limit;
|
||||
setrlimit (RLIMIT_DATA, &r);
|
||||
#ifndef __CYGWIN__
|
||||
#ifdef RLIMIT_RSS
|
||||
// Resident set size.
|
||||
getrlimit (RLIMIT_RSS, &r);
|
||||
r.rlim_cur = limit;
|
||||
|
Loading…
x
Reference in New Issue
Block a user