move -d:nimRawSetjmp to nim.cfg

Refs https://github.com/status-im/nimbus-build-system/issues/44
This commit is contained in:
narimiran 2022-06-17 19:08:25 +02:00
parent 7cb2e57a58
commit c196893450
No known key found for this signature in database
GPG Key ID: 858F5E6FB71FD8F5
4 changed files with 12 additions and 5 deletions

View File

@ -164,10 +164,6 @@ jobs:
- name: Run tests
run: |
if [[ "${{ matrix.target.os }}" == "windows" ]]; then
# https://github.com/status-im/nimbus-eth2/issues/3121
export NIMFLAGS="-d:nimRawSetjmp"
fi
nim --version
nimble --version
nimble install -y --depsOnly

5
nim.cfg Normal file
View File

@ -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

View File

@ -1 +0,0 @@
switch("path", "..")

7
tests/nim.cfg Normal file
View File

@ -0,0 +1,7 @@
path = ".."
# 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