make tests green again
This commit is contained in:
parent
d6601b729f
commit
52bb696cd4
2 changed files with 4 additions and 1 deletions
|
|
@ -118,6 +118,9 @@ when false:
|
||||||
gMemCacheData[fileIdx].needsRecompile = No
|
gMemCacheData[fileIdx].needsRecompile = No
|
||||||
return No
|
return No
|
||||||
|
|
||||||
|
proc resetSystemArtifacts*() =
|
||||||
|
magicsys.resetSysTypes()
|
||||||
|
|
||||||
proc newModule(graph: ModuleGraph; fileIdx: int32): PSym =
|
proc newModule(graph: ModuleGraph; fileIdx: int32): PSym =
|
||||||
# We cannot call ``newSym`` here, because we have to circumvent the ID
|
# 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.
|
# mechanism, which we do in order to assign each module a persistent ID.
|
||||||
|
|
|
||||||
|
|
@ -156,7 +156,7 @@ proc runNimScript*(cache: IdentCache; scriptName: string;
|
||||||
discard graph.processModule(m, llStreamOpen(scriptName, fmRead), nil, cache)
|
discard graph.processModule(m, llStreamOpen(scriptName, fmRead), nil, cache)
|
||||||
|
|
||||||
# ensure we load 'system.nim' again for the real non-config stuff!
|
# ensure we load 'system.nim' again for the real non-config stuff!
|
||||||
#resetAllModulesHard()
|
resetSystemArtifacts()
|
||||||
vm.globalCtx = nil
|
vm.globalCtx = nil
|
||||||
# do not remove the defined symbols
|
# do not remove the defined symbols
|
||||||
#initDefines()
|
#initDefines()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue