mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 18:02:05 +00:00
* Windows: enable nimRawSetjmp by default
See #19197. The default setjmp can randomly segfault on windows
* Attempt to disable the flag for bootstraping
* Disable styleCheck for c_setjmp
(cherry picked from commit 251bdc1d5a)
16 lines
468 B
Nim
16 lines
468 B
Nim
# this config.nims also needs to exist to prevent future regressions, see #9990
|
|
|
|
when defined(nimHasCppDefine):
|
|
cppDefine "errno"
|
|
cppDefine "unix"
|
|
|
|
# mangle the macro names in nimbase.h
|
|
cppDefine "NAN_INFINITY"
|
|
cppDefine "INF"
|
|
cppDefine "NAN"
|
|
|
|
when defined(windows) and not defined(booting):
|
|
# Avoid some rare stack corruption while using exceptions with a SEH-enabled
|
|
# toolchain: https://github.com/nim-lang/Nim/pull/19197
|
|
switch("define", "nimRawSetjmp")
|