]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-120371: Add WASI SDK 22 support (GH-121870)
authorBrett Cannon <brett@python.org>
Tue, 16 Jul 2024 20:00:39 +0000 (13:00 -0700)
committerGitHub <noreply@github.com>
Tue, 16 Jul 2024 20:00:39 +0000 (20:00 +0000)
Required disabling stub functions now provided by wasi-libc.

.devcontainer/Dockerfile
.github/workflows/reusable-wasi.yml
Misc/NEWS.d/next/Build/2024-07-16-12-29-54.gh-issue-120371.E7x858.rst [new file with mode: 0644]
Tools/wasm/config.site-wasm32-wasi

index 98ab4008bed7cffea072613702f8b9afc25922ed..a4ada1b66bf476c688b3c7f669e3714758b02cc4 100644 (file)
@@ -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
index db6c04ec2ac1c51271926b220e7997392aa5c4ec..ffa143b3457e5a70c683b3e357a6b710e902f9ae 100644 (file)
@@ -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 (file)
index 0000000..d57266d
--- /dev/null
@@ -0,0 +1,2 @@
+Support WASI SDK 22 by explicitly skipping functions that are just stubs in
+wasi-libc.
index 4a1a466a4ab3f16b903686f26fee50f6397f84ad..c5d8b3e205db26fe28dff56d97148009c0eebac1 100644 (file)
@@ -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