sokol: allow for v -os wasm32_emscripten -o examples/tetris/tetris.html examples/tetris/ (avoid using -sMODULARIZE) (#23814)

This commit is contained in:
Delyan Angelov 2025-02-26 11:51:33 +02:00 committed by GitHub
parent 94f0f6d93b
commit a1f7213de0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,9 +41,17 @@ $if emscripten ? {
#flag -DSOKOL_GLES3
#flag -DSOKOL_NO_ENTRY
#flag -s ERROR_ON_UNDEFINED_SYMBOLS=0
#flag -s ASSERTIONS=1
#flag -s MODULARIZE
#flag -s USE_WEBGL2
$if !prod {
#flag -s ASSERTIONS=1
}
$if prod {
#flag -s ASSERTIONS=0
}
// See https://emscripten.org/docs/tools_reference/settings_reference.html#modularize
// Note that it makes it impossible to use `v -os wasm32_emscripten -o file.html program.v` , due to:
// https://github.com/emscripten-core/emscripten/issues/7950
// #flag -s MODULARIZE
}
// OPENGL