Debian Codegraph @

Platforms/emscripten/config.site-wasm32-emscripten

raw
1 # config.site override for cross compiling to wasm32-emscripten platform
2 #
3 # CONFIG_SITE=Platforms/emscripten/config.site-wasm32-emscripten \
4 # emconfigure ./configure --host=wasm32-unknown-emscripten --build=...
5 #
6 # Written by Christian Heimes <[email protected]>
7 # Partly based on pyodide's pyconfig.undefs.h file.
8 #
9
10 # cannot be detected in cross builds
11 ac_cv_buggy_getaddrinfo=no
12
13 # Emscripten has no /dev/pt*
14 ac_cv_file__dev_ptmx=no
15 ac_cv_file__dev_ptc=no
16
17 # new undefined symbols / unsupported features
18 ac_cv_func_posix_spawn=no
19 ac_cv_func_posix_spawnp=no
20 ac_cv_func_eventfd=no
21 ac_cv_func_memfd_create=no
22 ac_cv_func_prlimit=no
23
24 # unsupported syscall, https://github.com/emscripten-core/emscripten/issues/13393
25 ac_cv_func_shutdown=no
26
27 # The rest is based on pyodide
28 # https://github.com/pyodide/pyodide/blob/main/cpython/pyconfig.undefs.h
29
30 ac_cv_func_epoll_create=no
31 ac_cv_func_epoll_create1=no
32 ac_cv_header_linux_vm_sockets_h=no
33 ac_cv_func_socketpair=no
34 ac_cv_func_sigaction=no
35
36 # symlinkat is implemented, but fails
37 ac_cv_func_symlinkat=no
38
39 # lchmod/lchown are implemented, but fail with ENOTSUP.
40 ac_cv_func_lchmod=no
41 ac_cv_func_lchown=no
42
43 # geteuid / getegid are stubs and always return 0 (root). The stub breaks
44 # code that assume effective user root has special permissions.
45 ac_cv_func_geteuid=no
46 ac_cv_func_getegid=no
47 ac_cv_func_seteuid=no
48 ac_cv_func_setegid=no
49 ac_cv_func_getresuid=no
50 ac_cv_func_getresgid=no
51 ac_cv_func_setresuid=no
52 ac_cv_func_setresgid=no
53
54 # Syscalls not implemented in emscripten
55 # [Errno 52] Function not implemented
56 ac_cv_func_preadv2=no
57 ac_cv_func_preadv=no
58 ac_cv_func_pwritev2=no
59 ac_cv_func_pwritev=no
60 ac_cv_func_pipe2=no
61 ac_cv_func_nice=no
62 ac_cv_func_setpriority=no
63 ac_cv_func_setitimer=no
64 # unsupported syscall: __syscall_prlimit64
65 ac_cv_func_prlimit=no
66 # unsupported syscall: __syscall_getrusage
67 ac_cv_func_getrusage=no
68 ac_cv_func_posix_fallocate=no
69
70 # Syscalls that resulted in a segfault
71 ac_cv_func_utimensat=no
72
73 # sockets are supported, but only AF_INET / AF_INET6 in non-blocking mode.
74 # Disable AF_UNIX and AF_PACKET support, see socketmodule.h.
75 ac_cv_header_sys_un_h=no
76 ac_cv_header_netpacket_packet_h=no
77
78 # aborts with bad ioctl
79 ac_cv_func_openpty=no
80 ac_cv_func_forkpty=no
81
82 # mkfifo and mknod are broken, create regular file
83 ac_cv_func_mkfifo=no
84 ac_cv_func_mkfifoat=no
85 ac_cv_func_mknod=no
86 ac_cv_func_mknodat=no
87
88 # always fails with permission or not implemented error
89 ac_cv_func_getgroups=no
90 ac_cv_func_setgroups=no
91 ac_cv_func_setresuid=no
92 ac_cv_func_setresgid=no
93
94 # Emscripten does not support hard links, always fails with errno 34
95 # "Too many links". See emscripten_syscall_stubs.c
96 ac_cv_func_link=no
97 ac_cv_func_linkat=no
98
99 # Emscripten's faccessat does not accept AT_* flags.
100 ac_cv_func_faccessat=no
101
102 # alarm signal is not delivered, may need a callback into the event loop?
103 ac_cv_func_alarm=no