how to make D program footprint smaller ?
Bastiaan Veelo
Bastiaan at Veelo.net
Sat Jul 10 21:40:54 UTC 2021
On Friday, 9 July 2021 at 03:07:04 UTC, dangbinghoo wrote:
> as questioned in the previous thread, I need to find out
> something like `--as-needed` options available for D.
You are probably looking for the
[-i](https://dlang.org/dmd-osx.html#switch-i%5B) compiler option.
As far as I know `dub` is not devised to work with that, so
making use of it can be finicky. I have managed to get it to work
on a `sourceLibrary` that we control, not sure how applicable it
is on a third party package.
— Bastiaan.
More information about the Digitalmars-d-learn
mailing list