-
Notifications
You must be signed in to change notification settings - Fork 72
Import attribute #68
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
Comments
There is work in progress on this already: #55 |
FYI I made WebAssembly/binaryen#1500 some time ago |
Yes WebAssembly/binaryen#1500 looks very similar, but for the .s file format rather than the binary. |
Thanks, although I'm not sure about how to be able to output this attribute (to the .s) from clang? I stumbled into the "import_module" attribute, but it look like it didn't make it into upstream (can't find "import_module" in tools/clang/include/clang/Basic/Attr.td). It looks implemented for rust. |
Interesting, I didn't know that PR against LLVM, but I did implement it on my side as well. (Edit: or I don't remember) First I bypassed LLVM, see https://github.com/xtuc/holyc/blob/master/include/webassembly/esm.h but the plan was to implement some syntax in the frontend. |
@xtuc oh, didn't though about dumping it using I guess I'll close this as some work along this direction (import attribute) already were investigated. Thanks again, |
Hello,
As there is a reflection about a dedicated export attribute in #64, I wondered if there would be any interest for an import attribute?
With a string argument, it may allow imports from multiple modules/host-namespaces, lifting the restriction on --allow-undefined-file to import only from "env".
It would make it more convenient for embeders to specify their API, and users to compile against it.
Thanks,
JB.
The text was updated successfully, but these errors were encountered: