ci / check (push) Successful in 18s
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.
6 lines
194 B
Rust
6 lines
194 B
Rust
// Compile C with the `cc` crate: natively for the unit test, and with the
|
|
// WASI clang (`CC_wasm32_wasip2`) for the actor.
|
|
fn main() {
|
|
cc::Build::new().file("src/add.c").compile("add");
|
|
}
|