Practical parallelization of D compilation
user1234
user1234 at 1234.de
Wed Jan 8 15:44:24 UTC 2020
On Wednesday, 8 January 2020 at 04:40:02 UTC, Guillaume Lathoud
wrote:
> Hello,
>
> One of my D applications grew from a simple main and a few
> source
> files to more than 200 files. Although I minimized usage of
> templating and CTFE, the compiling time is now about a minute.
>
> I did not find any solution to take advantage of having multiple
> cores during compilation, lest I would write a makefile, or
> split
> the code into multiple packages and use a package manager.
>
> (If I missed such a possibility, feel free to write it here.)
yeah there's one. DUB does the same as you script with the
following options:
dub build --parallel --build-mode=singleFile
More information about the Digitalmars-d-learn
mailing list