Make dub part of the standard dmd distribution

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Mon Jun 1 12:46:52 PDT 2015


On 6/1/15 12:16 PM, Nick Sabalausky wrote:
> On 06/01/2015 01:36 PM, Nick Sabalausky wrote:
>>
>> There is one part of that old proposal that I have come to like though,
>> and wouldn't mind seeing: There was an idea to have DMD automatically
>> invoke an external tool
>>
>
> Oops, forgot to finish writing that thought...
>
> As part of that old proposal, there was an idea to have DMD, when
> importing a module it couldn't find, automatically invoke an external
> tool which would tell DMD where to find the module. That way, a tool
> like RDMD would NOT need to invoke DMD twice (once to find the
> dependencies, and again to actually compile the dependencies).

rdmd could collect dependencies while performing the actual compilation. 
Then, if the dependencies are stable (compare with the saved ones), all 
done in one run. Otherwise, discard the output and rebuild.

This can be implemented today. Would you want to work on it?

Andrei




More information about the Digitalmars-d mailing list