Skip to content

Commit

Permalink
Fix emscripten options in CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Blaquewithaq committed Feb 26, 2024
1 parent 861c36e commit 59efc54
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand All @@ -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"
)
Expand Down

0 comments on commit 59efc54

Please sign in to comment.