build a project

Denis Koroskin 2korden at gmail.com
Thu Mar 26 08:15:10 PDT 2009


On Thu, 26 Mar 2009 18:09:22 +0300, Vladimir Panteleev <thecybershadow at gmail.com> wrote:

> On Thu, 26 Mar 2009 16:54:27 +0200, Denis Koroskin <2korden at gmail.com>
> wrote:
>
>> On Thu, 26 Mar 2009 17:44:33 +0300, Qian Xu
>> <quian.xu at stud.tu-ilmenau.de> wrote:
>>
>>> Hi All,
>>>
>>> I have a project with 300 d-files. I use WAF-tool to build my project.
>>>
>>> If I add one line comment in a d-file from the bottom of the dependency
>>> tree, almost the whole project will be recompiled again. This is very
>>> time
>>> consuming.
>>>
>>> Is there any way to detect, whether the modification of a d-file does
>>> not
>>> have affect to its dependency?
>>>
>>> Best regards and have a good day
>>> --Qian Xu
>>>
>>
>> You can try comparing DMD-generated .di files from that modified file.
>> There is no need to recompile dependencies if two headers match.
>
> Unless you compile with inlining enabled, AFAIK.
>

IIRC, whatever is getting *potentially* inlined stays in the header, so it should work regardless of the -inline switch.




More information about the Digitalmars-d mailing list