[Issue 7016] local import does not create -deps dependency

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Jan 7 18:45:04 PST 2017


https://issues.dlang.org/show_bug.cgi?id=7016

--- Comment #26 from Timothee Cour <timothee.cour2 at gmail.com> ---
I confirm this is still broken with dmd HEAD DMD64 D Compiler
v2.073.0-devel-a2b772f

RazvanN, are you sure you're not using rdmd ? 

Please re-run using -v and show your entire log.

rdmd -deps=a.deps --force -c a.d && cat a.deps 
would indeed produce a line "c (c.d) : private : object"

dmd -deps=a.deps --force -c a.d && cat a.deps 
would currently NOT produce this line, which is what this bug is about.

the reason rdmd produces the correct -deps here is because a.d contains top
level "import b" so it'll also compile b.d and hence show c.d, but that won't
work with more complex cases (eg if c.d contains: void test2(){import c2;}, it
won't list c2.d)

This is the biggest bug for d's build system.

--


More information about the Digitalmars-d-bugs mailing list