mirror of https://github.com/python/cpython
GH-120371: Add WASI SDK 22 support (GH-121870)
Required disabling stub functions now provided by wasi-libc.
This commit is contained in:
parent
e65cb4c6f0
commit
f589f263bc
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
Support WASI SDK 22 by explicitly skipping functions that are just stubs in
|
||||||
|
wasi-libc.
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue