shared defaultlib with dmd

forkit forkit at gmail.com
Tue Jan 18 22:04:15 UTC 2022


so I use this compile command (on Windows, using ldc)

-link-defaultlib-shared=true

Then (in simple example) the size of my compiled .exe:

 From 806KB down to 18KB

Oh. That's so much nicer on my SSD ;-)

(yes, I understand the implictions here of dynamic sharing, but I 
test/compile/debug so much, that I'd like to limit the impact on 
my SSD drive.

But I can't do this with dmd ?? it has not such option ??



More information about the Digitalmars-d-learn mailing list