We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57300cf commit b84b965Copy full SHA for b84b965
compiler/modulegraphs.nim
@@ -591,8 +591,12 @@ proc markClientsDirty*(g: ModuleGraph; fileIdx: FileIndex) =
591
# every module that *depends* on this file is also dirty:
592
for i in 0i32..<g.ifaces.len.int32:
593
if g.deps.contains(i.dependsOn(fileIdx.int)):
594
- g.markDirty(FileIndex(i))
595
- g.markClientsDirty(FileIndex(i))
+ let
+ fi = FileIndex(i)
596
+ module = g.getModule(fi)
597
+ if module != nil and not g.isDirty(module):
598
+ g.markDirty(fi)
599
+ g.markClientsDirty(fi)
600
601
proc needsCompilation*(g: ModuleGraph): bool =
602
0 commit comments