mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-03 02:18:00 +00:00
fix tests/coroutines/texceptions.nim (#8810)
This commit is contained in:
committed by
Andreas Rumpf
parent
ed0cb7b85d
commit
3e6b58323b
@@ -115,7 +115,12 @@ elif coroBackend == CORO_BACKEND_SETJMP:
|
||||
when defined(unix):
|
||||
# GLibc fails with "*** longjmp causes uninitialized stack frame ***" because
|
||||
# our custom stacks are not initialized to a magic value.
|
||||
{.passC: "-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"}
|
||||
when defined(osx):
|
||||
# workaround: error: The deprecated ucontext routines require _XOPEN_SOURCE to be defined
|
||||
const extra = " -D_XOPEN_SOURCE"
|
||||
else:
|
||||
const extra = ""
|
||||
{.passC: "-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0" & extra.}
|
||||
|
||||
const
|
||||
CORO_CREATED = 0
|
||||
|
||||
Reference in New Issue
Block a user