Fix emscripten options in CMakeLists.txt

This commit is contained in:
Blaquewithaq
2024-02-25 22:28:22 -06:00
parent 861c36e41b
commit 59efc54fe5

View File

@ -109,9 +109,6 @@ if(ENABLE_EMSCRIPTEN)
# Note: The "SHELL:" syntax is required to pass each argument as-is, but without quotes and CMake's de-duplication.
add_compile_options(
"SHELL:-s USE_SDL=2"
"SHELL:-s MIN_WEBGL_VERSION=2"
"SHELL:-s MAX_WEBGL_VERSION=2"
"SHELL:-s ALLOW_MEMORY_GROWTH=1"
"SHELL:-s NO_DISABLE_EXCEPTION_CATCHING"
)
@ -120,6 +117,7 @@ if(ENABLE_EMSCRIPTEN)
"SHELL:-s MIN_WEBGL_VERSION=2"
"SHELL:-s MAX_WEBGL_VERSION=2"
"SHELL:-s FULL_ES2=1"
"SHELL:-s FULL_ES3=1"
"SHELL:-s ALLOW_MEMORY_GROWTH=1"
"SHELL:-s NO_DISABLE_EXCEPTION_CATCHING"
)