[Issue 7016] local import does not create -deps dependency
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Jan 19 05:07:05 PST 2017
https://issues.dlang.org/show_bug.cgi?id=7016
--- Comment #27 from RazvanN <razvan.nitu1305 at gmail.com> ---
Running semantic3 recursively on dependencies will end up in an infinite loop
when there are circular imports. So, I propose the following solution:
-> the current -deps implementation should remain untouched and this will print
all the direct dependencies.
-> add another compiler flag: "-rdeps" (or maybe a more inspired name) which
will recurs through all the dependencies, excluding druntime or phobos
imports.
The rationale behind this is that both druntime and phobos have circular
imports
which will cause the recursive implementation to fail; also having just 1
phobos
import will lead to a cascade of imports which will be hard to follow.
Any better ideas?
RazvanN
--
More information about the Digitalmars-d-bugs
mailing list