DIP11: Automatic downloading of libraries

Adam D. Ruppe destructionator at gmail.com
Tue Jun 14 18:53:22 PDT 2011


> After the initial "gather everything and
> build" build, all it would ever have to do is exactly what RDMD
> already does right now: Run DMD once to find the deps, check them
> to see if anything needs rebuilt, and if so, run DMD the second
> time to build.

Does rdmd handle cases where the dependencies have dependencies?

Suppose app.d imports foo.d which imports bar.d

dmd app.d
can't find module in foo.d

retry:

dmd app.d foo.d
can't find module bar.d

try again:

dmd app.d foo.d bar.d

success.


Is it possible to cut out any one of those steps without caching
that third dmd line? Until you try to compile foo.d, it can't
know bar.d is required...


More information about the Digitalmars-d mailing list