LDC: Use `-fvisibility=public -dllimport=all` when compiling a Windows DLL (#2412)
...
As `-shared` can only be used when linking the DLL in the same cmdline too.
On Windows, `-shared` changes the defaults of some important settings wrt.
dllim/export, so specify those explicitly when *compiling* a DLL with dub
(or some static lib dependency thereof etc.).
Martin Kinkelin
authored
on 20 Aug 2022
GitHub
committed
on 20 Aug 2022