Skip to content

Commit f589f26

Browse files
authored
GH-120371: Add WASI SDK 22 support (GH-121870)
Required disabling stub functions now provided by wasi-libc.
1 parent e65cb4c commit f589f26

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)