#807491 gdc: -fmake-deps misses transitive dependencies

Package:
gdc
Source:
gcc-defaults
Description:
D compiler (language version 2), based on the GCC backend
Submitter:
Celelibi
Date:
2015-12-10 05:06:04 UTC
Severity:
normal
#807491#5
Date:
2015-12-09 14:48:54 UTC
From:
To:
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

#807491#10
Date:
2015-12-10 05:02:25 UTC
From:
To:
2015-12-09 15:48 UTC+01:00, Celelibi <celelibi@gmail.com>:
== 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