summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--compiler/nir/ast2ir.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/nir/ast2ir.nim b/compiler/nir/ast2ir.nim
index f06bb3ae8..bc7348be3 100644
--- a/compiler/nir/ast2ir.nim
+++ b/compiler/nir/ast2ir.nim
@@ -17,6 +17,9 @@ import .. / ic / bitabs
 
 import nirtypes, nirinsts, nirlineinfos, nirslots, types2ir
 
+when defined(nimCompilerStacktraceHints):
+  import std/stackframes
+
 type
   ModuleCon* = ref object
     strings*: BiTable[string]