This commit is contained in:
agra
2026-03-02 20:46:06 +02:00
parent e63c946116
commit ae269b1bfc
4 changed files with 25 additions and 8 deletions

View File

@@ -10,14 +10,8 @@
configure_build :: () {
opts := build_options();
inline if OS == {
case .wasm: {
inline if POINTER_SIZE == 4 {
opts.set_output_path("sx-out/wasm32/game.html");
} else {
opts.set_output_path("sx-out/wasm64/game.html");
}
opts.set_output_path(if POINTER_SIZE == 4 then "sx-out/wasm32/index.html" else "sx-out/wasm32/index.html");
opts.add_link_flag("-sUSE_SDL=3");
opts.add_link_flag("-sMAX_WEBGL_VERSION=2");
opts.add_link_flag("-sFULL_ES3=1");