use .cfg not .nims

This commit is contained in:
narimiran 2022-06-17 09:42:15 +02:00
parent 4eff75c1e4
commit e04d906a50
No known key found for this signature in database
GPG Key ID: 858F5E6FB71FD8F5
4 changed files with 12 additions and 9 deletions

View File

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

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

View File

@ -1,4 +1,10 @@
vcc.exe = "cl.exe"
vcc.cpp.exe = "cl.exe"
vcc.linkerexe = "cl.exe"
vcc.cpp.linkerexe = "cl.exe"
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