diff options
author | Araq <rumpf_a@web.de> | 2015-09-30 11:02:23 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-09-30 11:02:42 +0200 |
commit | d80f1633844597f3a8020fc156d2d889bf897d97 (patch) | |
tree | 8265ddf4c58fe3461a5b1d6bf90b38714600a849 /compiler | |
parent | 980db2f4407a21b1ca59926a3318479aedfa7e37 (diff) | |
download | Nim-d80f1633844597f3a8020fc156d2d889bf897d97.tar.gz |
NimScript: --define works as expected
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/scriptconfig.nim | 5 |
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") |