Commit fd2c9b1c by whitequark Committed by Eddie Hung

Remove ABC_NO_RLIMIT macro, use defined(__wasm) instead.

parent 2db5f19a
...@@ -132,7 +132,7 @@ int Abc_RealMain( int argc, char * argv[] ) ...@@ -132,7 +132,7 @@ int Abc_RealMain( int argc, char * argv[] )
break; break;
case 'm': { case 'm': {
#if !defined(WIN32) && !defined(ABC_NO_RLIMIT) #if !defined(WIN32) && !defined(__wasm)
int maxMb = atoi(globalUtilOptarg); int maxMb = atoi(globalUtilOptarg);
printf("Limiting memory use to %d MB\n", maxMb); printf("Limiting memory use to %d MB\n", maxMb);
struct rlimit limit = { struct rlimit limit = {
...@@ -144,7 +144,7 @@ int Abc_RealMain( int argc, char * argv[] ) ...@@ -144,7 +144,7 @@ int Abc_RealMain( int argc, char * argv[] )
break; break;
} }
case 'l': { case 'l': {
#if !defined(WIN32) && !defined(ABC_NO_RLIMIT) #if !defined(WIN32) && !defined(__wasm)
rlim_t maxTime = atoi(globalUtilOptarg); rlim_t maxTime = atoi(globalUtilOptarg);
printf("Limiting time to %d seconds\n", (int)maxTime); printf("Limiting time to %d seconds\n", (int)maxTime);
struct rlimit limit = { struct rlimit limit = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment