On Fri, 19 Apr 2013 12:26:04 GMT, Robert wrote:

Hi there!

I've patched dmd to output more complete dependency information, than it does now:

https://github.com/D-Programming-Language/dmd/pull/1839

Maybe you could have a look and comment whether you like it or what you don't like about it, so I can improve it. I hope that this pull won't rot like so many dmd pull requests, but will get merged soon. I think some discussion on the pull could help, because it signals to dmd maintainers that people care about this pull.

Yeah, it's really a pity how much work (at least seems to) get lost for DMD and its satellite projects because the response time sometimes is so high and things get out of date until the author is not willing to fix it up anymore...

My thoughts regarding the dependency output

  1. I like it and it seems to be the clean alternative to using the -v output, as rdmd does. Ideally, the format specification would appear at an official place so that other compilers can also adopt it.
  2. Isn't the "deps" prefix for each line redundant? (i.e. wouldn't "import", "file", etc. suffice?)
  3. I still very much favor the idea of letting dmd itself gather dependencies while it compiles, rather than performing an initial dummy build (but this is of course still useful for change tracking as soon as partial compilation works correctly - I've seen you and Dicebot have been quite busy to fix that...)

Hm... I just noticed that Andrej Mitrovic has already made a pull request for built-in recursive builds: https://github.com/D-Programming-Language/dmd/pull/1861