GH-120371: Add WASI SDK 22 support (GH-121870)

Required disabling stub functions now provided by wasi-libc.
This commit is contained in:
Brett Cannon 2024-07-16 13:00:39 -07:00 committed by GitHub
parent e65cb4c6f0
commit f589f263bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 12 additions and 2 deletions

View File

@ -2,7 +2,7 @@ FROM docker.io/library/fedora:40
ENV CC=clang ENV CC=clang
ENV WASI_SDK_VERSION=21 ENV WASI_SDK_VERSION=22
ENV WASI_SDK_PATH=/opt/wasi-sdk ENV WASI_SDK_PATH=/opt/wasi-sdk
ENV WASMTIME_HOME=/opt/wasmtime ENV WASMTIME_HOME=/opt/wasmtime

View File

@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
env: env:
WASMTIME_VERSION: 22.0.0 WASMTIME_VERSION: 22.0.0
WASI_SDK_VERSION: 21 WASI_SDK_VERSION: 22
WASI_SDK_PATH: /opt/wasi-sdk WASI_SDK_PATH: /opt/wasi-sdk
CROSS_BUILD_PYTHON: cross-build/build CROSS_BUILD_PYTHON: cross-build/build
CROSS_BUILD_WASI: cross-build/wasm32-wasi CROSS_BUILD_WASI: cross-build/wasm32-wasi

View File

@ -0,0 +1,2 @@
Support WASI SDK 22 by explicitly skipping functions that are just stubs in
wasi-libc.

View File

@ -49,3 +49,11 @@ ac_cv_func_preadv=no
ac_cv_func_readv=no ac_cv_func_readv=no
ac_cv_func_pwritev=no ac_cv_func_pwritev=no
ac_cv_func_writev=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