diff options
-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() |