summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-09-30 11:02:23 +0200
committerAraq <rumpf_a@web.de>2015-09-30 11:02:42 +0200
commitd80f1633844597f3a8020fc156d2d889bf897d97 (patch)
tree8265ddf4c58fe3461a5b1d6bf90b38714600a849 /compiler
parent980db2f4407a21b1ca59926a3318479aedfa7e37 (diff)
downloadNim-d80f1633844597f3a8020fc156d2d889bf897d97.tar.gz
NimScript: --define works as expected
Diffstat (limited to 'compiler')
-rw-r--r--compiler/scriptconfig.nim5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/scriptconfig.nim b/compiler/scriptconfig.nim
index aaa2486e5..22cd282fd 100644
--- a/compiler/scriptconfig.nim
+++ b/compiler/scriptconfig.nim
@@ -140,4 +140,7 @@ proc runNimScript*(scriptName: string) =
   # ensure we load 'system.nim' again for the real non-config stuff!
   resetAllModulesHard()
   vm.globalCtx = nil
-  initDefines()
+  # do not remove the defined symbols
+  #initDefines()
+  undefSymbol("nimscript")
+  undefSymbol("nimconfig")