Skip to content

Commit 5efd963

Browse files
[wasm] Enable wasi-libc emulation by default in SwiftWASILibc
1 parent c4919c0 commit 5efd963

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

stdlib/public/Platform/SwiftWASILibc.h.gyb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,20 @@ headers = [
105105
]
106106
}%
107107

108+
// FIXME?(katei):
109+
// Those emulations are now enabled by default to have compatibility
110+
// with other platforms as much as possible without any extra modification.
111+
// But we should consider moving them into their own submodules.
112+
#ifndef _WASI_EMULATED_MMAN
113+
# define _WASI_EMULATED_MMAN
114+
#endif
115+
#ifndef _WASI_EMULATED_SIGNAL
116+
# define _WASI_EMULATED_SIGNAL
117+
#endif
118+
#ifndef _WASI_EMULATED_PROCESS_CLOCKS
119+
# define _WASI_EMULATED_PROCESS_CLOCKS
120+
#endif
121+
108122
% for header in headers:
109123
#if __has_include(<${header}>)
110124
#include <${header}>

0 commit comments

Comments
 (0)