Skip to content

Commit

Permalink
followup #16400; use use -d:nimCompilerStackraceHints in more places (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour authored Jun 17, 2021
1 parent 13b94c0 commit 3c854e8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions compiler/vmgen.nim
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ import

from modulegraphs import getBody

when defined(nimCompilerStackraceHints):
import std/stackframes

const
debugEchoCode* = defined(nimVMDebug)

Expand Down Expand Up @@ -2000,6 +2003,8 @@ proc procIsCallback(c: PCtx; s: PSym): bool =
dec i

proc gen(c: PCtx; n: PNode; dest: var TDest; flags: TGenFlags = {}) =
when defined(nimCompilerStackraceHints):
setFrameMsg c.config$n.info & " " & $n.kind & " " & $flags
case n.kind
of nkSym:
let s = n.sym
Expand Down

0 comments on commit 3c854e8

Please sign in to comment.