summary refs log tree commit diff stats
path: root/compiler/rodread.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-05-27 11:10:56 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-05-27 11:10:56 +0200
commit669a5644926290e19a3fc32fd319c056183ff2d9 (patch)
treee513fe2158b8fc41c44996dac864248151696327 /compiler/rodread.nim
parent12bd1c494cdbb9d3e87d9479098d0892c2e7a453 (diff)
downloadNim-669a5644926290e19a3fc32fd319c056183ff2d9.tar.gz
remove more global variables in the Nim compiler
Diffstat (limited to 'compiler/rodread.nim')
-rw-r--r--compiler/rodread.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rodread.nim b/compiler/rodread.nim
index 9c834a410..dc9b1c61d 100644
--- a/compiler/rodread.nim
+++ b/compiler/rodread.nim
@@ -91,7 +91,7 @@
 import
   os, options, strutils, nversion, ast, astalgo, msgs, platform, condsyms,
   ropes, idents, std / sha1, idgen, types, rodutils, memfiles, tables,
-  configuration
+  lineinfos
 
 type
   TReasonForRecompile* = enum ## all the reasons that can trigger recompilation
@@ -899,7 +899,7 @@ proc checkDep(fileIdx: FileIndex; cache: IdentCache; conf: ConfigRef): TReasonFo
       # NOTE: we need to process the entire module graph so that no ID will
       # be used twice! However, compilation speed does not suffer much from
       # this, since results are cached.
-      var res = checkDep(systemFileIdx, cache, conf)
+      var res = checkDep(conf.m.systemFileIdx, cache, conf)
       if res != rrNone: result = rrModDeps
       for i in countup(0, high(r.modDeps)):
         res = checkDep(r.modDeps[i], cache, conf)