zig
zig copied to clipboard
Zig.wasm hangs when building in non-release mode
Zig Version
0.10.0-dev.3071+8e75ba653
Steps to Reproduce
When compiling Zig (the compiler) to Wasm/WASI, if it's compiled in non-release mode, it hangs in both browser and server.
Expected Behavior
However, when compiling in release mode, it works:
# In the source of Zig repo
zig build -Dtarget=wasm32-wasi -Drelease
wasmer run zig-out/bin/zig.wasm --dir=... -- build
THIS WORKS
Actual Behavior
# In the source of Zig repo
zig build -Dtarget=wasm32-wasi
wasmer run zig-out/bin/zig.wasm --dir=... -- build
THIS HANGS