Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2e34591

Browse files
[3.13]GH-120371: Add WASI SDK 22 support (GH-121870) (GH-121873)
GH-120371: Add WASI SDK 22 support (GH-121870)Required disabling stub functions now provided by wasi-libc.(cherry picked from commitf589f26)Co-authored-by: Brett Cannon <brett@python.org>
1 parentb11a776 commit2e34591

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

‎.devcontainer/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM docker.io/library/fedora:40
22

33
ENV CC=clang
44

5-
ENV WASI_SDK_VERSION=21
5+
ENV WASI_SDK_VERSION=22
66
ENV WASI_SDK_PATH=/opt/wasi-sdk
77

88
ENV WASMTIME_HOME=/opt/wasmtime

‎.github/workflows/reusable-wasi.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on:ubuntu-22.04
1313
env:
1414
WASMTIME_VERSION:22.0.0
15-
WASI_SDK_VERSION:21
15+
WASI_SDK_VERSION:22
1616
WASI_SDK_PATH:/opt/wasi-sdk
1717
CROSS_BUILD_PYTHON:cross-build/build
1818
CROSS_BUILD_WASI:cross-build/wasm32-wasi
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Support WASI SDK 22 by explicitly skipping functions that are just stubs in
2+
wasi-libc.

‎Tools/wasm/config.site-wasm32-wasi‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,11 @@ ac_cv_func_preadv=no
4949
ac_cv_func_readv=no
5050
ac_cv_func_pwritev=no
5151
ac_cv_func_writev=no
52+
53+
# WASI SDK 22 added multiple stubs which we don't implement.
54+
# https://github.com/python/cpython/issues/120371
55+
ac_cv_func_chmod=no
56+
ac_cv_func_fchmod=no
57+
ac_cv_func_fchmodat=no
58+
ac_cv_func_statvfs=no
59+
ac_cv_func_fstatvfs=no

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp