Compiler module import graph
ag0aep6g
anonymous at example.com
Sat Mar 13 14:30:52 UTC 2021
On 13.03.21 15:20, frame wrote:
> Is there a tool to view module import graph?
>
> The compiler verbose output shows that the module is imported/parsed but
> not why. I wan't to avoid unnecessary imports to speed up compile times
> or avoid issues if the module contents are not fully compatible with the
> current compile target being in development.
`dmd -deps` shows what imports what.
https://dlang.org/dmd-linux.html#switch-deps
Be aware that there is a bug where DMD misses some edges in the graph:
https://issues.dlang.org/show_bug.cgi?id=21238
More information about the Digitalmars-d-learn
mailing list