How to reduce executable filesize

Andre Pany andre at s-e-a-p.de
Fri Jul 19 11:28:26 UTC 2019


On Tuesday, 16 July 2019 at 10:30:50 UTC, kinke wrote:
> On Friday, 12 July 2019 at 22:22:01 UTC, Andre Pany wrote:
>> I found it:
>>
>> ldc2 app.d -defaultlib=druntime-ldc-shared,phobos2-ldc-shared 
>> -debuglib=druntime-ldc-debug-shared,phobos2-ldc-debug-shared
>
> `-link-defaultlib-shared` implies that and takes care of rpath 
> as well.

Thanks a lot. Is it also easily possible to compile an
application with DRuntime statically linked and completely
without Phobos?

Kind regards
André


More information about the digitalmars-d-ldc mailing list