-
Notifications
You must be signed in to change notification settings - Fork 3.4k
EMSDK support for wasm backend #6350
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
Current status is that the emsdk can install Not yet done:
|
(I'm posting this question here, but also wondering if it's okay for me to do so) So this doesn't support Windows yet (at least at the time of writing)? And am I correct in assuming that when it's complete, developers would be able to use the WASM Backend through EMSDK? What about the global Node installation? I have one for the latest version of Node, and I want to use that with EMSDK if possible, preferably without having to keep changing the And if it still doesn't support Windows yet, does anyone have any idea when it might be able to? Just wondering. Thanks. |
Yes, eventually the wasm backend will replace the older backend, and builds will be available on all platforms. Meanwhile, you can build it from source, or if some other place has recent LLVM builds you can use those (since it's just a normal LLVM build - for example, maybe wasi has builds for windows). |
Right now the wasm backend seems to only work on Linux distributions. Lately, when I try to do it on Windows, I get an error from gen_struct_info.py. Invoking Node gives a non-zero value, with Node itself just giving an empty output instead of some sort of message. It used to work before, so I don't know what happened. So right now it seems like I'll have to use the WSL if I want to do it on Windows. |
This is the error message I get when trying to use the wasm backend with Emscripten to compile C or C++ code to WebAssembly:
Note the empty output from Node, as well as the other stuff mentioned in the exception. Do I need to debug the Python script? |
I think we can close this issue. At this point we have wasm backend support in emsdk for windows, mac and linux, and tested on our new CI, all installable with |
As part of using the wasm backend by default, we should make it easy for users to download and install it. This means having emsdk install upstream LLVM instead of fastcomp.
Steps:
There's the question of how to organize installing the two backends. The options I know of are
emsdk install
to download the other backend later (which is bound to be a frustrating UX)emsdk activate
to change backends~/.emscripten
to change theLLVM_ROOT
variable~/.emscripten
to set... something. CurrentlyEMCC_WASM_BACKEND
is an environment flag, can.emscripten
set that?The text was updated successfully, but these errors were encountered: