compilation cache: slurped files are a dependency too
This commit is contained in:
parent
299390a585
commit
78f37b2336
4 changed files with 12 additions and 2 deletions
|
|
@ -205,6 +205,12 @@ proc myClose(context: PPassContext, n: PNode): PNode =
|
|||
else:
|
||||
InternalError(n.info, "n is not nil") #result := n;
|
||||
addCodeForGenerics(c, result)
|
||||
# we produce a fake include statement for every slurped filename, so that
|
||||
# the module dependencies are accurate:
|
||||
var ics = newNode(nkIncludeStmt)
|
||||
for s in items(c.slurpedFiles): ics.add(newStrNode(nkStrLit, s))
|
||||
result.add(ics)
|
||||
|
||||
checkThreads(c)
|
||||
popOwner()
|
||||
popProcCon(c)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue