diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2023-12-02 05:28:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-02 05:28:24 +0100 |
commit | 0d24f765461785e5648ee580e0a4158eb344ee97 (patch) | |
tree | 9dcf1ecb71f26a4fd28120f8285b325a22a90b87 /compiler/ic | |
parent | 5dfa1345fa2c046a42730a6357b12245e5ee3f06 (diff) | |
download | Nim-0d24f765461785e5648ee580e0a4158eb344ee97.tar.gz |
fixes #22552 (#23014)
Diffstat (limited to 'compiler/ic')
-rw-r--r-- | compiler/ic/ic.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/ic/ic.nim b/compiler/ic/ic.nim index 2f03ffb43..b12db194c 100644 --- a/compiler/ic/ic.nim +++ b/compiler/ic/ic.nim @@ -1089,7 +1089,8 @@ proc needsRecompile(g: var PackedModuleGraph; conf: ConfigRef; cache: IdentCache else: result = optForceFullMake in conf.globalOptions # check its dependencies: - for dep in g[m].fromDisk.imports: + let imp = g[m].fromDisk.imports + for dep in imp: let fid = toFileIndex(dep, g[m].fromDisk, conf) # Warning: we need to traverse the full graph, so # do **not use break here**! |