Delight
Sergey Gromov
snake.scaly at gmail.com
Sun Sep 28 18:43:18 PDT 2008
Sun, 28 Sep 2008 20:40:53 -0400,
bearophile wrote:
> Sergey Gromov:
>
> > Recursive building is a special case for simple tools, and in a
> > large project you do want an incremental build.
>
> So why not offer a handy feature for all the small cases, plus the
> capability of using complex incremental builds for large programs?
Well, the "give me all source on the command line" thing is a C legacy
where compiler simply couldn't deduce the files required to build the
project. In D it's possible and there probably should be an -auto
option in DMD. Maybe -version=auto could be defined for the first
module then. I'm not sure.
> > But a build system can definitely do that. Bud could do that. Bud
> > could define a -version=builders, or define -version=mainmodule when
> > compiling the first module in the chain.
>
> I see :-) Well, this solution of yours is better than nothing. I don't
> know if bud is updated still.
Bud supports D2. This means it's being maintained.
> But the name of the constant you have to use into the code is is
> different for each module, it's not a standard one like I have
> suggested. So your solution is worse still.
Please read again:
> > or define -version=mainmodule when compiling the first module in the
> > chain.
It's completely up to the build system which way to go, it has all the
flexibility.
More information about the Digitalmars-d-announce
mailing list