You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By compiling druntime/Phobos with `-fvisibility=public` for the new
DLLs.
Compiling and linking druntime works fine:
> ls -lh lib/druntime-ldc*
-rwxr-xr-x 1 Martin 197121 2.4M Apr 24 19:28 lib/druntime-ldc-debug-shared.dll
-rw-r--r-- 1 Martin 197121 2.9M Apr 24 19:28 lib/druntime-ldc-debug-shared.lib
-rw-r--r-- 1 Martin 197121 12M Apr 24 19:28 lib/druntime-ldc-debug-shared.pdb
-rw-r--r-- 1 Martin 197121 8.6M Apr 24 19:28 lib/druntime-ldc-debug.lib
-rw-r--r-- 1 Martin 197121 4.7M Apr 24 19:28 lib/druntime-ldc-lto.lib
-rwxr-xr-x 1 Martin 197121 2.2M Apr 24 19:28 lib/druntime-ldc-shared.dll
-rw-r--r-- 1 Martin 197121 2.8M Apr 24 18:46 lib/druntime-ldc-shared.lib
-rw-r--r-- 1 Martin 197121 8.5M Apr 24 19:28 lib/druntime-ldc-shared.pdb
-rw-r--r-- 1 Martin 197121 4.4M Apr 24 19:28 lib/druntime-ldc.lib
The druntime DLL exports more than 10k symbols. The MS C runtime is
linked statically; that should probably be changed to the MS DLLs too.
Linking a non-Phobos hello-world app against the druntime DLL works; it
unsurprisingly crashes at runtime though.
The Phobos DLL can be compiled too, but linking fails (builtin TypeInfo
init symbols and vtables etc.).
0 commit comments