symbol files: implemented accurate module dependency tracking

This commit is contained in:
Araq 2018-02-21 00:48:23 +01:00
commit 046ed4ed22
7 changed files with 105 additions and 22 deletions

View file

@ -194,6 +194,8 @@ proc processModule*(graph: ModuleGraph; module: PSym, stream: PLLStream,
while doContinue:
let n = loadNode(module, stmtIndex)
if n == nil or graph.stopCompile(): break
#if n.kind == nkImportStmt:
# echo "yes and it's ", n
inc stmtIndex
var m = n
for i in 0..<gPassesLen: