SDK for C and C++ WebAssembly development based on Nix and LLVM
Find a file
2025-07-19 19:24:19 +02:00
.gitignore Initial commit 2024-05-12 10:09:06 +02:00
default.nix v2.0.0 2024-05-12 10:47:43 +02:00
flake.lock Initial commit 2024-05-12 10:09:06 +02:00
flake.nix feat: symlink all deps using symlinkJoin 2024-05-12 10:47:15 +02:00
README.md feat: symlink all deps using symlinkJoin 2024-05-12 10:47:15 +02:00
wasi-libc.nix fix: For compatibilty with WebAssembly/wasi-sdk, adapt sysroot path 2025-07-19 19:24:19 +02:00
wasm-compiler-rt.nix Initial commit 2024-05-12 10:09:06 +02:00
wasm-libcxx.nix fix: For compatibilty with WebAssembly/wasi-sdk, adapt sysroot path 2025-07-19 19:24:19 +02:00
wasm-llvm.nix Initial commit 2024-05-12 10:09:06 +02:00

wasm-sdk

A Nix-based SDK for C and C++ development targeting WebAssembly.

Goals

  • Lean toolchain leveraging as much as possible from upstream sources.
  • Basic levels of WASI (no threading, no exceptions).

Versions

  • LLVM: 17
  • wasi-libc: 21

Usage

The package contains all required dependencies in the following build subdirectories:

  • bin: compilers (clang, clang++) and linker (wasm-ld)
  • include: libc headers
  • include/c++/v1: libcxx headers
  • lib: all libc and libcxx static libraries
  • lib/wasi: compiler-rt builtins static library