diff options
author | Brett Cannon <brett@python.org> | 2024-07-16 20:00:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-16 20:00:39 (GMT) |
commit | f589f263bcb54332e47bfc76cbb06f775e82b778 (patch) | |
tree | be0c344031a96a87c275f570d03274c3ca0f0261 | |
parent | e65cb4c6f01a687f451ad9db1600525e1c5832c4 (diff) | |
download | cpython-f589f263bcb54332e47bfc76cbb06f775e82b778.zip cpython-f589f263bcb54332e47bfc76cbb06f775e82b778.tar.gz cpython-f589f263bcb54332e47bfc76cbb06f775e82b778.tar.bz2 |
GH-120371: Add WASI SDK 22 support (GH-121870)
Required disabling stub functions now provided by wasi-libc.
-rw-r--r-- | .devcontainer/Dockerfile | 2 | ||||
-rw-r--r-- | .github/workflows/reusable-wasi.yml | 2 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Build/2024-07-16-12-29-54.gh-issue-120371.E7x858.rst | 2 | ||||
-rw-r--r-- | Tools/wasm/config.site-wasm32-wasi | 8 |
4 files changed, 12 insertions, 2 deletions
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 98ab400..a4ada1b 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -2,7 +2,7 @@ FROM docker.io/library/fedora:40 ENV CC=clang -ENV WASI_SDK_VERSION=21 +ENV WASI_SDK_VERSION=22 ENV WASI_SDK_PATH=/opt/wasi-sdk ENV WASMTIME_HOME=/opt/wasmtime diff --git a/.github/workflows/reusable-wasi.yml b/.github/workflows/reusable-wasi.yml index db6c04e..ffa143b 100644 --- a/.github/workflows/reusable-wasi.yml +++ b/.github/workflows/reusable-wasi.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-22.04 env: WASMTIME_VERSION: 22.0.0 - WASI_SDK_VERSION: 21 + WASI_SDK_VERSION: 22 WASI_SDK_PATH: /opt/wasi-sdk CROSS_BUILD_PYTHON: cross-build/build CROSS_BUILD_WASI: cross-build/wasm32-wasi diff --git a/Misc/NEWS.d/next/Build/2024-07-16-12-29-54.gh-issue-120371.E7x858.rst b/Misc/NEWS.d/next/Build/2024-07-16-12-29-54.gh-issue-120371.E7x858.rst new file mode 100644 index 0000000..d57266d --- /dev/null +++ b/Misc/NEWS.d/next/Build/2024-07-16-12-29-54.gh-issue-120371.E7x858.rst @@ -0,0 +1,2 @@ +Support WASI SDK 22 by explicitly skipping functions that are just stubs in +wasi-libc. diff --git a/Tools/wasm/config.site-wasm32-wasi b/Tools/wasm/config.site-wasm32-wasi index 4a1a466..c5d8b3e 100644 --- a/Tools/wasm/config.site-wasm32-wasi +++ b/Tools/wasm/config.site-wasm32-wasi @@ -49,3 +49,11 @@ ac_cv_func_preadv=no ac_cv_func_readv=no ac_cv_func_pwritev=no ac_cv_func_writev=no + +# WASI SDK 22 added multiple stubs which we don't implement. +# https://github.com/python/cpython/issues/120371 +ac_cv_func_chmod=no +ac_cv_func_fchmod=no +ac_cv_func_fchmodat=no +ac_cv_func_statvfs=no +ac_cv_func_fstatvfs=no |