vm now free of global variables

This commit is contained in:
Andreas Rumpf 2018-05-28 14:41:49 +02:00
commit 382bc34f93
4 changed files with 12 additions and 17 deletions

View file

@ -438,7 +438,7 @@ proc execCmd(cmd: string; graph: ModuleGraph; cache: IdentCache; cachedMsgs: Cac
proc recompileFullProject(graph: ModuleGraph; cache: IdentCache) =
#echo "recompiling full project"
resetSystemArtifacts(graph)
vm.globalCtx = nil
graph.vm = nil
graph.resetAllModules()
GC_fullcollect()
compileProject(graph, cache)