Windows: enable nimRawSetjmp by default [backport] (#19891)
* 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
This commit is contained in:
parent
b41226001c
commit
251bdc1d5a
2 changed files with 12 additions and 0 deletions
|
|
@ -20,5 +20,10 @@ when defined(nimStrictMode):
|
|||
switch("hintAsError", "ConvFromXtoItselfNotNeeded")
|
||||
# future work: XDeclaredButNotUsed
|
||||
|
||||
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")
|
||||
|
||||
switch("define", "nimVersion:" & NimVersion)
|
||||
switch("define", "nimPreviewDotLikeOps")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue