d: Fix missing dependencies in depfile for imported files (PR93038)
authorIain Buclaw <ibuclaw@gdcproject.org>
Sat, 21 Mar 2020 23:10:17 +0000 (00:10 +0100)
committerIain Buclaw <ibuclaw@gdcproject.org>
Sat, 21 Mar 2020 23:10:37 +0000 (00:10 +0100)
commit4a01f7b1e73e98a86520d8a825ddd3777faa7c33
tree1c5ea14af83ff31a1c8490f3b001c54a80029944
parent424e39081f9ce716ad4b6306803c2784caba732a
d: Fix missing dependencies in depfile for imported files (PR93038)

A new field for tracking imported files was added to the front-end, this
makes use of it by writing all such files in the make dependency list.

gcc/d/ChangeLog:

2020-03-22  Iain Buclaw  <ibuclaw@gdcproject.org>

PR d/93038
* d-lang.cc (deps_write): Add content imported files to the make
dependency list.

gcc/testsuite/ChangeLog:

2020-03-22  Iain Buclaw  <ibuclaw@gdcproject.org>

PR d/93038
* gdc.dg/fileimports/pr93038.txt: New test.
* gdc.dg/pr93038.d: New test.
gcc/d/ChangeLog
gcc/d/d-lang.cc
gcc/testsuite/ChangeLog
gcc/testsuite/gdc.dg/fileimports/pr93038.txt [new file with mode: 0644]
gcc/testsuite/gdc.dg/pr93038.d [new file with mode: 0644]