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.). |
---|
|
source/dub/compilers/ldc.d |
---|
test/1-dynLib-simple/dub.json |
---|
test/2-dynLib-with-staticLib-dep/.no_build_ldc2 100644 → 0 |
---|