summary refs log tree commit diff stats
path: root/compiler/main.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2023-10-31 21:32:09 +0100
committerGitHub <noreply@github.com>2023-10-31 21:32:09 +0100
commit801c02bf48b1612c8bf58ed113f944c9d6e32ead (patch)
tree750b978864d2d47b2dc22d38ee3feacb15871ba6 /compiler/main.nim
parent2ae344f1c204f92a944afeb70fe6b1ca1c419f62 (diff)
downloadNim-801c02bf48b1612c8bf58ed113f944c9d6e32ead.tar.gz
so close... (#22885)
Diffstat (limited to 'compiler/main.nim')
-rw-r--r--compiler/main.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/main.nim b/compiler/main.nim
index 0627a61bb..6651128eb 100644
--- a/compiler/main.nim
+++ b/compiler/main.nim
@@ -201,7 +201,9 @@ proc commandCompileToJS(graph: ModuleGraph) =
 proc commandInteractive(graph: ModuleGraph; useNir: bool) =
   graph.config.setErrorMaxHighMaybe
   initDefines(graph.config.symbols)
-  if not useNir:
+  if useNir:
+    defineSymbol(graph.config.symbols, "noSignalHandler")
+  else:
     defineSymbol(graph.config.symbols, "nimscript")
   # note: seems redundant with -d:nimHasLibFFI
   when hasFFI: defineSymbol(graph.config.symbols, "nimffi")