fix #9264 regression (#9265)

This commit is contained in:
Timothee Cour 2018-10-09 14:48:27 -07:00 • committed by Andreas Rumpf
commit 77f836b403

View file

@ -159,11 +159,8 @@ proc runNimScript*(cache: IdentCache; scriptName: AbsoluteFile;
defineSymbol(conf.symbols, "nimscript") defineSymbol(conf.symbols, "nimscript")
defineSymbol(conf.symbols, "nimconfig") defineSymbol(conf.symbols, "nimconfig")
var registeredPasses {.global.} = false registerPass(graph, semPass)
if not registeredPasses: registerPass(graph, evalPass)
registerPass(graph, semPass)
registerPass(graph, evalPass)
registeredPasses = true
conf.searchPaths.add(conf.libpath) conf.searchPaths.add(conf.libpath)