From 41e2f6b7bc9666af7076ffd47006c8e813c1a854 Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Tue, 9 Oct 2018 14:48:27 -0700 Subject: [PATCH] fix #9264 regression (#9265) (cherry picked from commit 77f836b403af0bb130368ba05c96799393b2eeb9) --- compiler/scriptconfig.nim | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/compiler/scriptconfig.nim b/compiler/scriptconfig.nim index cf69e29f1d84d..b4d947288d54c 100644 --- a/compiler/scriptconfig.nim +++ b/compiler/scriptconfig.nim @@ -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)