summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorErwan Ameil <wan@idlewan.com>2017-11-10 04:39:11 +0000
committerAndreas Rumpf <rumpf_a@web.de>2017-11-10 05:39:11 +0100
commit6a6a2b7d76068e4c89a9b45d593def1f370464a1 (patch)
tree2beada34067ad2995900039a0caabb5449ea6ebd /lib
parent46275f6b8fb448b51e68225fd42e69d53e65f562 (diff)
downloadNim-6a6a2b7d76068e4c89a9b45d593def1f370464a1.tar.gz
Fix missing stacktraces when using -d:useNimRtl (#6716)
Diffstat (limited to 'lib')
-rw-r--r--lib/system/excpt.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/excpt.nim b/lib/system/excpt.nim
index f2b5997cc..9e02d6824 100644
--- a/lib/system/excpt.nim
+++ b/lib/system/excpt.nim
@@ -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")