diff options
Diffstat (limited to 'compiler/main.nim')
-rw-r--r-- | compiler/main.nim | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/compiler/main.nim b/compiler/main.nim index e3ff99870..e6563f281 100644 --- a/compiler/main.nim +++ b/compiler/main.nim @@ -31,11 +31,19 @@ proc semanticPasses = registerPass verbosePass registerPass semPass +proc writeDepsFile(g: ModuleGraph; project: string) = + let f = open(changeFileExt(project, "deps"), fmWrite) + for m in g.modules: + if m != nil: + f.writeLine(toFullPath(m.position.int32)) + f.close() + proc commandGenDepend(graph: ModuleGraph; cache: IdentCache) = semanticPasses() registerPass(gendependPass) - registerPass(cleanupPass) + #registerPass(cleanupPass) compileProject(graph, cache) + writeDepsFile(graph, gProjectFull) generateDot(gProjectFull) execExternalProgram("dot -Tpng -o" & changeFileExt(gProjectFull, "png") & ' ' & changeFileExt(gProjectFull, "dot")) |