diff --git a/config.nims b/config.nims deleted file mode 100644 index 1e7c616..0000000 --- a/config.nims +++ /dev/null @@ -1,4 +0,0 @@ -if defined(windows) and not defined(vcc): - # Avoid some rare stack corruption while using exceptions with a SEH-enabled - # toolchain: https://github.com/status-im/nimbus-eth2/issues/3121 - switch("define", "nimRawSetjmp") diff --git a/nim.cfg b/nim.cfg new file mode 100644 index 0000000..371f6d7 --- /dev/null +++ b/nim.cfg @@ -0,0 +1,5 @@ +# Avoid some rare stack corruption while using exceptions with a SEH-enabled +# toolchain: https://github.com/status-im/nimbus-eth2/issues/3121 +@if windows and not vcc: + --define:nimRawSetjmp +@end diff --git a/tests/config.nims b/tests/config.nims deleted file mode 100644 index 1e7c616..0000000 --- a/tests/config.nims +++ /dev/null @@ -1,4 +0,0 @@ -if defined(windows) and not defined(vcc): - # Avoid some rare stack corruption while using exceptions with a SEH-enabled - # toolchain: https://github.com/status-im/nimbus-eth2/issues/3121 - switch("define", "nimRawSetjmp") diff --git a/tests/nim.cfg b/tests/nim.cfg index 619bfaf..74421a5 100644 --- a/tests/nim.cfg +++ b/tests/nim.cfg @@ -1,4 +1,10 @@ vcc.exe = "cl.exe" vcc.cpp.exe = "cl.exe" vcc.linkerexe = "cl.exe" -vcc.cpp.linkerexe = "cl.exe" \ No newline at end of file +vcc.cpp.linkerexe = "cl.exe" + +# Avoid some rare stack corruption while using exceptions with a SEH-enabled +# toolchain: https://github.com/status-im/nimbus-eth2/issues/3121 +@if windows and not vcc: + --define:nimRawSetjmp +@end