move -d:nimRawSetjmp to nim.cfg (#513)

* move -d:nimRawSetjmp to nim.cfg

Refs https://github.com/status-im/nimbus-build-system/issues/44
This commit is contained in:
Miran 2022-06-21 16:25:42 +02:00 committed by GitHub
parent 44cb2256fd
commit 5c0893bfb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 8 deletions

View File

@ -230,10 +230,6 @@ jobs:
run: |
export PLATFORM="${{ matrix.target.os }}-${{ matrix.target.cpu }}"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
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,4 +0,0 @@
--threads:on
# rocksdb_backend newChainDB fails compiling without nimOldCaseObjects as
# rocksdb init does this type of assignment
--define:nimOldCaseObjects

10
tests/nim.cfg Normal file
View File

@ -0,0 +1,10 @@
--threads:on
# rocksdb_backend newChainDB fails compiling without nimOldCaseObjects as
# rocksdb init does this type of assignment
--define:nimOldCaseObjects
# 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