-
-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Every export in WebAssembly is removed in ldc 1.15.0-beta1 #3023
Comments
Here is the relevant section from lld
If I add But, is there a way I can add the |
Nice. I see in the llir that it is correct:
except it still doesn't get exported. I am not sure what version of llvm ldc uses. It could be that the change I am waiting for (https://reviews.llvm.org/D57869) is still in the pipeline. |
8.0.0-rc4 as mentioned in the release notes. That change is very fresh, so very likely not to be part of LLVM 8 (which was branched off trunk mid-January). |
Ok. I am going to use |
This fixes issue ldc-developers#3023 and restores the behavior of previous LLD versions (of exporting/not stripping all symbols with default/public visibility).
This fixes issue #3023 and restores the behavior of previous LLD versions (of exporting/not stripping all symbols with default/public visibility).
In ldc 1.14 and before, any function marked with
extern(C) export
was exported in the wasm binary.With ldc 1.15-beta1 pretty much everything is stripped. The only way I can export anything is to pass
--export=funcname
to the linker.Ironically in ldc 1.14 the hard part was to remove exports (since it was exporting way too much, including *init_Z), but in ldc 1.15-beta1 all that stuff is removed (yay!), but also the things I want to export.
The text was updated successfully, but these errors were encountered: