Ship libc for WASI #8489
Labels
arch-wasm
32-bit and 64-bit WebAssembly
contributor friendly
This issue is limited in scope and/or knowledge of Zig internals.
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
os-wasi
standard library
This issue involves writing Zig code for the standard library.
zig cc
Zig as a drop-in C compiler feature
Milestone
Currently, wasm32-wasi can not build C code that uses libc, leaving it fairly useless for C.
There is a libc for WASI based partly on musl: https://github.com/WebAssembly/wasi-libc
(Vaguely related: WASI has the separate concepts of "commands" and "reactors", where commands use main() and run once, while reactors just export a number of functions, and have an _initialize entry point instead of _start that is used to initialise libc internals in C code. Related issue here: #6757)
The text was updated successfully, but these errors were encountered: