-
Notifications
You must be signed in to change notification settings - Fork 699
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
wasm-interp for the web #2157
Comments
I don't see why not, in fact I think we already do build it as part of CI: wabt/.github/workflows/build.yml Lines 68 to 80 in e426908
|
Perhaps I need to look closer, but after inspecting the artifacts, I don't see something like I appreciate the guidance! I'm pretty new to wabt |
I don't think we public the emscripten build as part of the release. It should be fairly straight forward to build it yourself if you need to. |
If you want to create a PR that will stash the CI artifacts somewhere that would be great too (then I think you could download them from any CI run). |
What I'm saying is that the github action might not be producing the actual interpreter in wasm.
|
Yes those are not the build artifacts. How did you do that build? The build artifacts end up the I would do something like this:
It looks like wabt build to pure JS by default, if you want the wasm version you would need to edit CMakeLists.txt and remove |
I followed the CI (docker was nice, since I didn't have to worry about the right deps)
I removed -sWASM=0, but that didn't change the output. |
And do you get a |
BTW, you don't need to use docker, you can also just install emsdk in your machine if you want. |
Yes, and I'm trying make it produce
But |
Oh you have to remove BTW do you really want to the wasm file or do you just want to run it on the web (in which case you probably want to the JS file too). |
I will try removing the SINGLE_FILE flag and see! Yeah sorry for leaving an important detail (related to the ticket I mentioned) I do not have a js runtime. What I have is a tool that is capable of transforming wasm into brightscript. But the transformed code has limitations. So I was hoping I can built wasm-interp into wasm, transform that into brightscript, and use it to load other wasm modules, bringing functionality to Roku OS apps. |
Yup, removing SINGLE_FILE produces the wasm module! I will close this issue, since this is a very niche thing, so I doubt someone would need to build into wasm specifically. |
Can wasm-interp be built for wasm?
Solving for WebAssembly/binaryen#5530
The text was updated successfully, but these errors were encountered: