Skip to content

Commit

Permalink
fix #9264 regression (#9265)
Browse files Browse the repository at this point in the history
(cherry picked from commit 77f836b)
  • Loading branch information
timotheecour authored and narimiran committed Nov 1, 2018
1 parent 46f0c7c commit 41e2f6b
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 41e2f6b

Please sign in to comment.