-
Notifications
You must be signed in to change notification settings - Fork 157
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
WASI SDK actually needed? #560
Comments
The only reason we suggest the WASI SDK is that it comes with libc. Most distributions of clang can build for wasm out of the box, but they don't include a wasm-ready libc, which limits things quite a lot. |
Perhaps it could fall back to system I personally don't use any libc functions because they tend to increase binary size quite a bit, and I think a lot of users would be OK without them too. |
Any update on this? There seems to be a number of systems that have |
Hi, no updates. Unfortunately we need to support Windows which makes things more complicated. I've thought about using Zig in place of the WASI SDK. I think it provides wasi-libc and a drop-in C cross compiler. |
btw nothing stops you from changing your project's Makefile or build script to use a system wasi-libc. We just recommend the WASI SDK because it's easiest for most users to set up. |
WASI SDK's README notes that "all that's done here is to provide builds configured to set the default target and sysroot for convenience." Should instructions be included on how to use upstream Clang / LLVM instead of this SDK?
The text was updated successfully, but these errors were encountered: