-
-
Notifications
You must be signed in to change notification settings - Fork 31.2k
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
Test the wasm32-wasip2
target triple
#121634
Comments
May I make a try for this? |
Are you asking about changing |
Sorry for confused reply. I would like to make a try to support |
Hi Brett, Sorry for replying too late. I have made a try to support the socket in |
@Zheaoli I think some support is better than nothing. I'm okay getting what's there working and then providing the feedback of what's still missing. |
I've started a branch to at least allow for compiling w/ |
…rgument (pythonGH-123030) (cherry picked from commit b15b81e) Co-authored-by: Brett Cannon <brett@python.org>
FYI I will leave this open while I figure out what to do about WASI 0.2 as it's technically a new platform which means buildbot, PEP 11, deciding what to test in CI, etc. |
OK, so I found out that VS Code's WASI support is not moving over to WASI 0.2 yet because it's a lot of work and the thinking is networking isn't useful w/o threads and those haven't fully landed in WASM yet (I hear Chrome/v8 is the holdup). As such, work isn't as concerned w/ WASI 0.2 and since that would mean I would have to support it as a tier 3 on my own time I'm going to de-emphasize WASI 0.2 and instead focus on more generic things like getting e.g., So I'm closing this issue as done as my changes to |
https://bytecodealliance.zulipchat.com/#narrow/stream/394175-SIG-Guest-Languages/topic/Python.20subgroup/near/450807393
Requires #120371 since WASI SDK 22 is required. But this supposedly has some socket support! Downside is any runtime that doesn't support preview2 won't be able to use the file. That probably means adding a flag to
wasi.py
to control for the target triple as it's currently hard-coded:cpython/Tools/wasm/wasi.py
Line 23 in e8c91d9
Linked PRs
wasm32-wasip2
#123029wasi.py
accept the host target triple as an argument #123030wasi.py
accept the host target triple as an argument (GH-123030) #123042The text was updated successfully, but these errors were encountered: