diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-05-27 11:10:56 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-05-27 11:10:56 +0200 |
commit | 669a5644926290e19a3fc32fd319c056183ff2d9 (patch) | |
tree | e513fe2158b8fc41c44996dac864248151696327 /compiler/rodread.nim | |
parent | 12bd1c494cdbb9d3e87d9479098d0892c2e7a453 (diff) | |
download | Nim-669a5644926290e19a3fc32fd319c056183ff2d9.tar.gz |
remove more global variables in the Nim compiler
Diffstat (limited to 'compiler/rodread.nim')
-rw-r--r-- | compiler/rodread.nim | 4 |
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) |