make dependency analyser free of global variables

This commit is contained in:
Andreas Rumpf 2018-05-28 00:04:55 +02:00
commit 006ee79a91
2 changed files with 17 additions and 10 deletions

View file

@ -48,7 +48,7 @@ proc commandGenDepend(graph: ModuleGraph; cache: IdentCache) =
compileProject(graph, cache)
let project = graph.config.projectFull
writeDepsFile(graph, project)
generateDot(project)
generateDot(graph, project)
execExternalProgram(graph.config, "dot -Tpng -o" & changeFileExt(project, "png") &
' ' & changeFileExt(project, "dot"))