Debian Codegraph @

Tools/wasm/wasi/config.site-wasm32-wasi

raw
1 # config.site override for cross compiling to wasm32-wasi platform
2 #
3 # Written by Christian Heimes <[email protected]>
4
5 # cannot be detected in cross builds
6 ac_cv_buggy_getaddrinfo=no
7
8 # WASI has no /dev/pt*
9 ac_cv_file__dev_ptmx=no
10 ac_cv_file__dev_ptc=no
11
12 # get/setrlimit are not supported
13 ac_cv_header_sys_resource_h=no
14
15 # undefined symbols / unsupported features
16 ac_cv_func_eventfd=no
17
18 # WASI SDK 15.0 has no pipe syscall.
19 ac_cv_func_pipe=no
20
21 # WASI SDK 15.0 cannot create fifos and special files.
22 ac_cv_func_mkfifo=no
23 ac_cv_func_mkfifoat=no
24 ac_cv_func_mknod=no
25 ac_cv_func_mknodat=no
26 ac_cv_func_makedev=no
27
28 # fdopendir() fails on SDK 15.0,
29 # OSError: [Errno 28] Invalid argument: '.'
30 ac_cv_func_fdopendir=no
31
32 # WASI sockets are limited to operations on given socket fd and inet sockets.
33 # Disable AF_UNIX and AF_PACKET support, see socketmodule.h.
34 ac_cv_header_sys_un_h=no
35 ac_cv_header_netpacket_packet_h=no
36
37 # disable accept for WASM runtimes without sock_accept
38 #ac_cv_func_accept=no
39 #ac_cv_func_accept4=no
40
41 # Disable int-conversion for wask-sdk as it triggers an error from version 17.
42 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
52
53 # WASI SDK 22 added multiple stubs which we don't implement.
54 # https://github.com/python/cpython/issues/120371
55 ac_cv_func_chmod=no
56 ac_cv_func_fchmod=no
57 ac_cv_func_fchmodat=no
58 ac_cv_func_statvfs=no
59 ac_cv_func_fstatvfs=no