4 ms·
Can `zig cc` also compile to WebAssembly/WASI?
by jedisct1 7y ago
Can `zig cc` also compile to WebAssembly/WASI?
- jedisct1 7y agoApparently not :( Zig is unable to provide a libc for the chosen target 'wasm32-wasi-musl'
- yellowapple 7y agoZig 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).