diff options
author | Araq <rumpf_a@web.de> | 2016-11-06 18:59:49 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2016-11-06 18:59:49 +0100 |
commit | 52bb696cd4ad57ac647a0bcf7da53be4ef014b69 (patch) | |
tree | 5b5cc404c4e1fc08c81293f7a86860fc9dd0abc5 | |
parent | d6601b729f9c5662a607e91f57255078bfc8b333 (diff) | |
download | Nim-52bb696cd4ad57ac647a0bcf7da53be4ef014b69.tar.gz |
make tests green again
-rw-r--r-- | compiler/modules.nim | 3 | ||||
-rw-r--r-- | compiler/scriptconfig.nim | 2 |
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() |