summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2016-11-06 18:59:49 +0100
committerAraq <rumpf_a@web.de>2016-11-06 18:59:49 +0100
commit52bb696cd4ad57ac647a0bcf7da53be4ef014b69 (patch)
tree5b5cc404c4e1fc08c81293f7a86860fc9dd0abc5
parentd6601b729f9c5662a607e91f57255078bfc8b333 (diff)
downloadNim-52bb696cd4ad57ac647a0bcf7da53be4ef014b69.tar.gz
make tests green again
-rw-r--r--compiler/modules.nim3
-rw-r--r--compiler/scriptconfig.nim2
2 files changed, 4 insertions, 1 deletions
diff --git a/compiler/modules.nim b/compiler/modules.nim
index 68df5f756..26ca2177b 100644
--- a/compiler/modules.nim
+++ b/compiler/modules.nim
@@ -118,6 +118,9 @@ when false:
     gMemCacheData[fileIdx].needsRecompile = No
     return No
 
+proc resetSystemArtifacts*() =
+  magicsys.resetSysTypes()
+
 proc newModule(graph: ModuleGraph; fileIdx: int32): PSym =
   # We cannot call ``newSym`` here, because we have to circumvent the ID
   # mechanism, which we do in order to assign each module a persistent ID.
diff --git a/compiler/scriptconfig.nim b/compiler/scriptconfig.nim
index ddd73e6f8..1105d3b67 100644
--- a/compiler/scriptconfig.nim
+++ b/compiler/scriptconfig.nim
@@ -156,7 +156,7 @@ proc runNimScript*(cache: IdentCache; scriptName: string;
   discard graph.processModule(m, llStreamOpen(scriptName, fmRead), nil, cache)
 
   # ensure we load 'system.nim' again for the real non-config stuff!
-  #resetAllModulesHard()
+  resetSystemArtifacts()
   vm.globalCtx = nil
   # do not remove the defined symbols
   #initDefines()