Repository navigation
Update wasi-sdk for wasm32-webp2 - #662
Conversation
|
lgtm 👍 |
|
I think this is overall ready for review. We should merge WebAssembly/wasi-libc#883 first though. |
There was a problem hiding this comment.
As this PR gets closer to merging, could you be sure to send this *.patch and the below one upstream to LLVM and then rename these *.patch files to the llvm-pr-NNNN.patch equivalent?
| defined(__DragonFly__) | ||
| # define _LIBCPP_USING_ARC4_RANDOM | ||
| -# elif defined(__wasi__) || defined(__EMSCRIPTEN__) | ||
| +# elif defined(__wasi__) || defined(__webp2__) || defined(__EMSCRIPTEN__) |
There was a problem hiding this comment.
Doesn't the webp2 target also always define __wasi__?
There was a problem hiding this comment.
I chose not to do that because lots of code that checks for __wasi__ assumes the existence of WASI APIs, which we don't support on the web. So at least for now it doesn't use __wasi__, and I didn't add a comparable __web__ define since that seemed presumptuous at this stage.
Adds initial support for a `webp2` target. Filesystem and socket stuff is all stubbed out and should trap. Time and randomness functionality has been implemented using web APIs. Absolutely none of this has yet been tested in any meaningful way, and I'm quite confident that some stuff must be wildly incomplete. But if you're interested, you can take a look and see if I'm doing things in a generally reasonable way. - [x] Figure out exec model stuff (reactor + _initialize hook) - [x] Depend on actual release of wit-bindgen with accessor support - [x] Tests! See also: - WebAssembly/wasi-sdk#662 - bytecodealliance/wasm-component-ld#131 --------- Co-authored-by: Alex Crichton <alex@alexcrichton.com>
|
Seems we have problems with CI because GitHub retired the I think I'll take a crack at fixing that in a separate PR and then rebasing this one. |
|
Oh CI takes forever so feel free to just throw it in this PR, it should just be bumping some versions in the CI config, no major issues expected |
WIP. Adds support for wasm32-webp2, to be later repackaged in https://github.com/WebAssembly/component-sdk.
See also: