[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#807491: gdc: -fmake-deps misses transitive dependencies



2015-12-09 15:48 UTC+01:00, Celelibi <celelibi@gmail.com>:
> Package: gdc
> Version: 4:5.2.1-8
> Severity: normal
>
> Dear maintainer,
>
> It appears that the option of gdc -fmake-deps doesn't include the
> indirect dependencies that can occur when a module uses "public import".
>
> Best regards,
> Celelibi

Here is an example:
== main.d ==
import lib1;
Foo x = 42;

== lib1.d ==
module lib1;
public import lib2;

== lib2.d ==
module lib2;
alias Foo = int;

== Output of gdc -fmake-deps ==
$ gdc -fmake-deps -o /dev/null -c main.d
main.o: main.d /usr/lib/gcc/i586-linux-gnu/5/include/d/object.di lib1.d

The expected output would, of course, include lib2.d.


Best regards,
Celelibi


Reply to: