Files
sausage/cli/tests/crates/cargo-c/src/add.c
T
surma a536d873e6
ci / check (push) Successful in 18s
cargo: compile C for wasm32-wasip2 with a WASI clang
The Nix package, the dev shell, and the test check set CC_wasm32_wasip2
and AR_wasm32_wasip2 to the clang of pkgsCross.wasi32 (wasi-libc), so
build scripts with the cc crate work, for example rusqlite with bundled
SQLite. The runtime-toolchain check links C into a probe with the
packaged host and an empty PATH.
2026-10-22 20:16:38 +01:00

2 lines
42 B
C

int c_add(int a, int b) { return a + b; }