3 ms·
Zig itself does support cross-compiling to WASM/WASI (https://ziglang.org/documentation/master/#WebAssembly https://ziglang.org/documentation/master/#WebAssembl
by yellowapple 7y ago
Zig itself does support cross-compiling to WASM/WASI (https://ziglang.org/documentation/master/#WebAssembly https://ziglang.org/documentation/master/#WebAssembly), so there's surely some way to coax 'zig cc' into doing the same (though I haven't tried it).