summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2024-03-02 00:52:12 (GMT)
committerGitHub <noreply@github.com>2024-03-02 00:52:12 (GMT)
commit5dc8c84d397110f9edfa56793ad8887b1f176d79 (patch)
treedce5b75edd48aad5f73c16d0a97a803addc56205 /Tools
parentcad3745b87ae85285a08ad8abd60cf10a59985b5 (diff)
downloadcpython-5dc8c84d397110f9edfa56793ad8887b1f176d79.zip
cpython-5dc8c84d397110f9edfa56793ad8887b1f176d79.tar.gz
cpython-5dc8c84d397110f9edfa56793ad8887b1f176d79.tar.bz2
GH-115978: Disable `*readv()` and `*writev()` on WASI (GH-116228)
Wasmtime doesn't implement these functions in a way to pass test_posix (https://github.com/bytecodealliance/wasmtime/issues/7830).
Diffstat (limited to 'Tools')
-rw-r--r--Tools/wasm/config.site-wasm32-wasi9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tools/wasm/config.site-wasm32-wasi b/Tools/wasm/config.site-wasm32-wasi
index 5e98775..4a1a466 100644
--- a/Tools/wasm/config.site-wasm32-wasi
+++ b/Tools/wasm/config.site-wasm32-wasi
@@ -40,3 +40,12 @@ ac_cv_header_netpacket_packet_h=no
# Disable int-conversion for wask-sdk as it triggers an error from version 17.
ac_cv_disable_int_conversion=yes
+
+# preadv(), readv(), pwritev(), and writev() under wasmtime's WASI 0.2 support
+# do not use more than the first buffer provided, failing under test_posix.
+# Since wasmtime will not be changing this behaviour, disable the functions.
+# https://github.com/bytecodealliance/wasmtime/issues/7830
+ac_cv_func_preadv=no
+ac_cv_func_readv=no
+ac_cv_func_pwritev=no
+ac_cv_func_writev=no