zig-wasm-webgl icon indicating copy to clipboard operation
zig-wasm-webgl copied to clipboard

doesn't run with latest zig (fixed)

Open wallabyway opened this issue 2 years ago • 0 comments

use this command instead.. zig build-lib main.zig -target wasm32-freestanding -dynamic -OReleaseSmall

ie.

  • remove main.wasm rm main.wasm
  • build main.wasm zig build-lib main.zig -target wasm32-freestanding -dynamic -OReleaseSmall
  • start a static web server python3 -m http.server
  • open your browser at localhost:8000

Result: Screen Shot 2022-05-27 at 7 26 44 PM

wallabyway avatar May 28 '22 02:05 wallabyway