diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-07-18 15:45:25 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-07-18 15:45:25 -0700 |
commit | 42e40dbd0a513d430ff0a463f9a80dedfbbf51f5 (patch) | |
tree | 5cf69498d43b8d225e28cf5562f91c3a4a94f814 /backends/smt2 | |
parent | 09411dd996f75dbce22a6f6979b7d61b0dae24f7 (diff) | |
parent | e66e8fb59d8443c8d55c1185d6b2ce889a35357d (diff) | |
download | yosys-42e40dbd0a513d430ff0a463f9a80dedfbbf51f5.tar.gz yosys-42e40dbd0a513d430ff0a463f9a80dedfbbf51f5.tar.bz2 yosys-42e40dbd0a513d430ff0a463f9a80dedfbbf51f5.zip |
Merge remote-tracking branch 'origin/master' into ice40dsp
Diffstat (limited to 'backends/smt2')
-rw-r--r-- | backends/smt2/smtio.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/backends/smt2/smtio.py b/backends/smt2/smtio.py index ae7968a1b..bac68ac70 100644 --- a/backends/smt2/smtio.py +++ b/backends/smt2/smtio.py @@ -43,7 +43,11 @@ if os.name == "posix": if current_rlimit_stack[1] != resource.RLIM_INFINITY: smtio_stacksize = min(smtio_stacksize, current_rlimit_stack[1]) if current_rlimit_stack[0] < smtio_stacksize: - resource.setrlimit(resource.RLIMIT_STACK, (smtio_stacksize, current_rlimit_stack[1])) + try: + resource.setrlimit(resource.RLIMIT_STACK, (smtio_stacksize, current_rlimit_stack[1])) + except ValueError: + # couldn't get more stack, just run with what we have + pass # currently running solvers (so we can kill them) |