mirror of https://github.com/YosysHQ/abc.git
Revert "Remove ABC_NO_RLIMIT macro, use defined(__wasm) instead."
This reverts commit fd2c9b1c19.
This commit is contained in:
parent
8f5c823fa4
commit
c95d9499d9
|
|
@ -134,7 +134,7 @@ int Abc_RealMain( int argc, char * argv[] )
|
|||
break;
|
||||
|
||||
case 'm': {
|
||||
#if !defined(WIN32) && !defined(__wasm)
|
||||
#if !defined(WIN32) && !defined(ABC_NO_RLIMIT)
|
||||
int maxMb = atoi(globalUtilOptarg);
|
||||
printf("Limiting memory use to %d MB\n", maxMb);
|
||||
struct rlimit limit = {
|
||||
|
|
@ -146,7 +146,7 @@ int Abc_RealMain( int argc, char * argv[] )
|
|||
break;
|
||||
}
|
||||
case 'l': {
|
||||
#if !defined(WIN32) && !defined(__wasm)
|
||||
#if !defined(WIN32) && !defined(ABC_NO_RLIMIT)
|
||||
rlim_t maxTime = atoi(globalUtilOptarg);
|
||||
printf("Limiting time to %d seconds\n", (int)maxTime);
|
||||
struct rlimit limit = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue