Enhancement on `export` symbol
Hipreme
msnmancini at hotmail.com
Fri Mar 14 16:41:05 UTC 2025
On Friday, 14 March 2025 at 16:32:55 UTC, kinke wrote:
> With LDC, you can use `-fvisibility={public,hidden}` to control
> the default visibility (for symbols without explicit `export`
> visibility / `@hidden` UDA). It defaults to `public` when
> compiling & linking a DLL in a single step via `-shared`; when
> compiling the DLL separately without linking, you need to
> specify it yourself.
>
> Recent DMD has that CLI option too, `-visibility` (no leading
> `f`).
>
> For (a lot of) context, see
> https://forum.dlang.org/post/dobouzmhwabquswguunk@forum.dlang.org.
I'm already using that since it reduces a lot the binary size. I
would say that it is almost difficult to not use it, but still
doesn't solve that issue I'm having unfortunately
More information about the Digitalmars-d
mailing list