Skip to content

Commit 5dc8c84

Browse files
authored
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).
1 parent cad3745 commit 5dc8c84

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
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

+9
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,12 @@ ac_cv_header_netpacket_packet_h=no
4040

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

0 commit comments

Comments
 (0)