D, SCons, Dub

Nordlöw via Digitalmars-d digitalmars-d at puremagic.com
Mon Apr 17 11:53:59 PDT 2017


On Monday, 17 April 2017 at 17:51:33 UTC, Russel Winder wrote:
> Just in case anyone gives a ####:
>
> I have submitted a pull request that adds ProgramAllAtOnce as a 
> builder in the dmd, ldc, and gdc tools of SCons. This does an 
> 'all at once' compilation in a single compiler instantiation, 
> unlike the standard module at a time compilation and then link 
> the program. There are lots of arguments about whether "all at 
> once" is at all useful, I have added it simply because it is 
> the only way Unit-Threaded works.

Nice. I'm using SCons in my everyday development. I'll give your 
feature a try.

Meson has recently added a similar feature. Meson calls it a 
"unity build".

> If you want to use it prior to it being accepted and released, 
> then feel free to use the tools in the repository 
> https://github.com/russel/ SCons_D_Experiment
>
> Also in there you will spot a new tool dub. I am now using this 
> to grab
> unit-threaded from the Dub repository in a SCons build. See for 
> example
>  https://github.com/russel/ApproxGC

Cool.

Thanks.


More information about the Digitalmars-d mailing list