Dynamic Libraries to Improve Incremental Compilation Speed

rikki cattermole rikki at cattermole.co.nz
Mon Sep 12 19:22:12 UTC 2022


On 13/09/2022 7:17 AM, Vijay Nayar wrote:
> It's a good read and it could inspire similar capabilities within dub.

Dub already supports shared libraries, to more or less the best ability 
that the compilers have to offer in ~master.

Ultimately if you attempt to build your D code as a shared library (and 
succeeds!) and when you try to link against it you get linker errors, 
there is not a whole lot you can do from the build manager side.

Ldc is mostly there, gdc too I believe. Dmd on the other hand... forget 
about it (Windows).


More information about the Digitalmars-d mailing list