Commit Graph

3 Commits

Author SHA1 Message Date
Yuta Saito
e0131dc7dd wasm: Add pthread.h to the WASI libc modulemap
Recent wasi-libc has added `pthread.h` to its headers. This patch adds
it to the modulemap.
2024-02-29 17:59:24 +00:00
Yuta Saito
35120a110f [wasm] Exclude builtin headers from WASILibc system module
stable/20230725 now rejects including builtin headers in modulemap by
default to avoid module cycles on non-Apple platforms. Builtin headers
are now part of their own `_Builtin_XXX` modules.

See:
- https://github.com/apple/llvm-project/pull/7618
- https://reviews.llvm.org/D159483
- https://reviews.llvm.org/D159064
2023-10-24 00:07:32 +00:00
Yuta Saito
902d75e608 [wasm][build] Add WASILibc module and its build support
[wasi-libc](https://github.com/WebAssembly/wasi-libc) is a libc
implementation widely used in WASI toolchains. This patch adds a new
module named WASILibc. Some extra emulation libraries are also added as
wasi_emulated_xxx.
2023-09-23 11:51:00 +00:00