Skip to content

Commit 862775b

Browse files
[3.11] GH-115978: Disable *readv() and *writev() on WASI (GH-116228) (GH-116232)
GH-115978: Disable `*readv()` and `*writev()` on WASI (GH-116228) Wasmtime doesn't implement these functions in a way to pass test_posix (bytecodealliance/wasmtime#7830). (cherry picked from commit 5dc8c84) Co-authored-by: Brett Cannon <[email protected]>
1 parent ac8d995 commit 862775b

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Disable preadv(), readv(), pwritev(), and writev() on WASI.
2+
3+
Under wasmtime for WASI 0.2, these functions don't pass test_posix
4+
(https://github.com/bytecodealliance/wasmtime/issues/7830).

Tools/wasm/config.site-wasm32-wasi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,12 @@ ac_cv_header_netpacket_packet_h=no
4343

4444
# Disable int-conversion for wask-sdk as it triggers an error from version 17.
4545
ac_cv_disable_int_conversion=yes
46+
47+
# preadv(), readv(), pwritev(), and writev() under wasmtime's WASI 0.2 support
48+
# do not use more than the first buffer provided, failing under test_posix.
49+
# Since wasmtime will not be changing this behaviour, disable the functions.
50+
# https://github.com/bytecodealliance/wasmtime/issues/7830
51+
ac_cv_func_preadv=no
52+
ac_cv_func_readv=no
53+
ac_cv_func_pwritev=no
54+
ac_cv_func_writev=no

0 commit comments

Comments
 (0)