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.).
1 parent ba74360 commit 6f66febd857543781d0b1255867601c86e4f1f71
@Martin Kinkelin Martin Kinkelin authored on 20 Aug 2022
GitHub committed on 20 Aug 2022
Showing 3 changed files
View
source/dub/compilers/ldc.d
View
test/1-dynLib-simple/dub.json
View
test/2-dynLib-with-staticLib-dep/.no_build_ldc2 100644 → 0