Skip to content

Commit

Permalink
fix #9264 regression (#9265)
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour authored and Araq committed Oct 9, 2018
1 parent 32d5b80 commit 77f836b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions compiler/scriptconfig.nim
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,8 @@ proc runNimScript*(cache: IdentCache; scriptName: AbsoluteFile;

defineSymbol(conf.symbols, "nimscript")
defineSymbol(conf.symbols, "nimconfig")
var registeredPasses {.global.} = false
if not registeredPasses:
registerPass(graph, semPass)
registerPass(graph, evalPass)
registeredPasses = true
registerPass(graph, semPass)
registerPass(graph, evalPass)

conf.searchPaths.add(conf.libpath)

Expand Down

0 comments on commit 77f836b

Please sign in to comment.