Make dub part of the standard dmd distribution

Nick Sabalausky via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 2 08:01:52 PDT 2015


On 06/02/2015 01:03 AM, Nick Sabalausky wrote:
> On 06/01/2015 03:59 PM, Nick Sabalausky wrote:
>> On 06/01/2015 03:46 PM, Andrei Alexandrescu wrote:
>>>
>>> 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.
>>>
>>
>> Hmm, actually, that's a good idea.
>>
>>> This can be implemented today. Would you want to work on it?
>>>
>>
>> I've gotten rusty on RDMD's internals, but I'll take a look, see what I
>> can manage.
>>
>
> Unfortunately, I've hit a bit of a problem: "dmd -v" doesn't emit an
> "import  module_name (path/to)" line for imports that were provided on
> the command line.
>
> Aside from the minor issue of it complicating parts of the code, this
> makes it impossible (AFAICT) to distinguish between "the deps have not
> changed" vs "a former dep is no longer imported and should no longer be
> compiled".
>

Related to this, does anyone happen to recall why rdmd uses "dmd -v" to 
get dependencies instead of "dmd -deps"? IIRC, it used to use -deps back 
at one time.



More information about the Digitalmars-d mailing list