Standard C library implementation for WebAssembly System Interface
Find a file
2026-08-19 13:10:40 +02:00
.fmf configure tests for CI 2023-09-12 10:12:53 +02:00
.gitignore Fix build with LLVM/Clang 20 2025-06-27 13:51:01 +02:00
gating.yaml gating: remove rpmdeplint case from branched Fedoras 2025-01-31 16:51:10 +01:00
README.md Expand README 2023-09-14 15:22:27 +02:00
smoke-test.c Do not repackage the library archive (rhbz#2228297) 2023-08-14 11:24:13 +02:00
sources Update to version 33 (rhbz#2513553) 2026-08-19 12:26:42 +02:00
test-plan.fmf configure tests for CI 2023-09-12 10:12:53 +02:00
wasi-libc.rpmlintrc add rpmlint config to filter expected errors 2026-08-19 13:10:40 +02:00
wasi-libc.spec Update to version 33 (rhbz#2513553) 2026-08-19 12:26:42 +02:00

wasi-libc

Standard C library implementation for WebAssembly System Interface.

Quick How-to

$ clang --target=wasm32-wasi --sysroot=/usr/wasm32-wasi -nodefaultlibs -lc -o hello hello.c

Important flags:

  • --target=wasm32-wasi specifies the compilation architecture (WASM System Interface).
  • --sysroot=/usr/wasm32-wasi tells clang where the library files are.
  • -nodefaultlibs disables linking of libc and libcompiler-rt (the latter is not available).
  • -lc re-enables linking of libc.