zig icon indicating copy to clipboard operation
zig copied to clipboard

Zig.wasm hangs when building in non-release mode

Open syrusakbary opened this issue 3 years ago • 0 comments

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

syrusakbary avatar Jul 22 '22 20:07 syrusakbary