-
Notifications
You must be signed in to change notification settings - Fork 552
Add instructions to test wasi (wasm32-wasip1) specific tests #2537
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, just two nits, feel free to merge after :)
src/tests/running.md
Outdated
@@ -342,14 +342,35 @@ coordinate running tests (see [src/bootstrap/src/core/build_steps/test.rs]). | |||
> **TODO** | |||
> | |||
> - Is there any support for using an iOS emulator? | |||
> - It's also unclear to me how the wasm or asm.js tests are run. | |||
> - It's also unclear to me how the asm.js tests are run. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: yet this, asm.js was removed an eternity ago since the asmjs target got yeeted 😆
src/tests/running.md
Outdated
Follow the install instructions from the [wasi sdk repository] to get a sysroot on your computer. | ||
Some cmake commands that take a while and give a lot of very concerning c++ warnings... | ||
Then, in `bootstrap.toml`, point to the sysroot like so: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: also note that you need a WASI SDK satisifying the minimum version required by the wasm32-wasip1
target support page, i.e. https://github.com/rust-lang/rust/blob/master/src/doc/rustc/src/platform-support/wasm32-wasip1.md#building-the-target.
@jdonszelmann nice that you used sembr |
Always, though I didn't know it was named this hehe ❤️ |
I wrote too much papers in latex to consider anything else..... |
r? @jieyouxu
I used slightly playful language which I'm aware of, but I don't think it should matter that much for the devguide. Decided not to remove the TODO comment entirely since I don't know how much of it these instructions resolve.