Fix missing stacktraces when using -d:useNimRtl (#6716)

This commit is contained in:
Erwan Ameil
2017-11-10 04:39:11 +00:00
committed by Andreas Rumpf
parent 46275f6b8f
commit 6a6a2b7d76

View File

@@ -374,7 +374,7 @@ when defined(endb):
var
dbgAborting: bool # whether the debugger wants to abort
when not defined(noSignalHandler):
when not defined(noSignalHandler) and not defined(useNimRtl):
proc signalHandler(sign: cint) {.exportc: "signalHandler", noconv.} =
template processSignal(s, action: untyped) {.dirty.} =
if s == SIGINT: action("SIGINT: Interrupted by Ctrl-C.\n")