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:07:44 +02:00 committed by andri lim
parent 7d64c0d843
commit 971a76e86d
3 changed files with 10 additions and 4 deletions

View File

@ -149,10 +149,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

5
tests/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