From f032509b125b48e00b3f2d7b37bab4979c723c05 Mon Sep 17 00:00:00 2001 From: nothke Date: Thu, 4 Jul 2024 17:08:10 +0200 Subject: [PATCH] Added note about running wasm but doesnt build --- readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readme.md b/readme.md index 43e1d0f..8c2ece4 100644 --- a/readme.md +++ b/readme.md @@ -10,6 +10,8 @@ The goal of this project is not fixed, and is just to try out some sokol feature To build, you need to have zig master (you can use [zvm](https://www.zvm.app/) to help you with this). Then just `zig build run` and that should be it! +To build for wasm, use `zig build -Dtarget=wasm32-emscripten run` + Note that if you change shaders, you have to recompile them manually - run compile_shaders.bat. ### Live error checking