gdc and Make
nedbrek
nedbrek at yahoo.com
Sun Apr 11 04:14:21 PDT 2010
Hello,
"Ellery Newcomer" <ellery-newcomer at utulsa.edu> wrote in message
news:hprahm$310n$1 at digitalmars.com...
> On 04/10/2010 08:27 PM, nedbrek wrote:
>> Hello all,
>>
>> I think there are circumstances where one .d depends on another, but I'm
>> not
>> sure... is it every import?
>>
>> I tried "gdc -MM", but it said that option is not supported for D.
>>
>> Any recommendations? Do I need to break out sed and awk?
>>
>
> I think if you pass your source directories via -I the order that *.d get
> compiled doesn't matter (beyond efficiency ..).
Yea, I think the order is ok.
> As far as dependencies, yeah, a d file will be dependent on anything it
> imports. In DMD there's a -deps flag that outputs that information, and in
> verbose mode, it will print out any import that it processes. I don't know
> how much of that gdc has.
Ok, I have dmd installed, maybe I can use it to generate the dependencies...
> But I really think you shouldn't do that anyways.
Hehe, yea. I'd prefer not to, but I think I am constrained (need a dll).
Thanks,
Ned
More information about the Digitalmars-d-learn
mailing list