C and C++ WASM LLVM toolchain with libc++ and libc static libraries and headers targeting WASI.
- Nix 100%
File hierarchy now largely congruent with WebAssembly/wasi-sdk. Refactoring |
||
|---|---|---|
| .gitignore | ||
| default.nix | ||
| flake.lock | ||
| flake.nix | ||
| README.md | ||
| wasi-libc.nix | ||
| wasm-compiler-rt.nix | ||
| wasm-libcxx.nix | ||
| wasm-llvm.nix | ||
wasi-sdk-nixos
C and C++ WASM LLVM toolchain with libc++ and libc static libraries and headers targeting WASI.
Similar to WebAssembly/wasi-sdk, but re-implemented from scratch for NixOS.
Goals
- Provide lean C/C++ toolchain for WASM (using as much as possible from the LLVM project).
- Support WASI preview 1 (no threading, no exceptions).
Versioning
Provided are the following currently available major versions:
- LLVM: 22
- wasi-libc: 30
Usage
This is a Nix flake. Its default package delivers a tool and compiler sysroot file hierarchy that should be largely congruent with WebAssembly/wasi-sdk.
For concrete usage examples, see https://code.michael.franzl.name/michael/clang-wasm-browser-starterpack
Maintenance
This project is exclusively maintained at https://code.michael.franzl.name/michael/wasi-sdk-nixos