From 283a9bb1fccc91fc9ab840609f57788cd19d0d24 Mon Sep 17 00:00:00 2001 From: Miran Date: Mon, 20 Jun 2022 09:20:01 +0200 Subject: [PATCH] move -d:nimRawSetjmp to nim.cfg (#114) Refs https://github.com/status-im/nimbus-build-system/issues/44 --- .github/workflows/ci.yml | 4 ---- nim.cfg | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 nim.cfg diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 229a7289..7b662ff4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -160,10 +160,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 diff --git a/nim.cfg b/nim.cfg new file mode 100644 index 00000000..371f6d79 --- /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