Skip to content

Commit

Permalink
Increased minimum emscripten version to 3.1.25, maximum version to 3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Nydauron committed Apr 17, 2023
1 parent fbb6de2 commit 7088f4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
required: false

env:
EM_VERSION: 3.1.14
EM_VERSION: 3.1.25
EM_CACHE_FOLDER: 'emsdk-cache'
BUILD_TYPE: Release

Expand Down
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ if (EMSCRIPTEN)
OR using 'emcmake cmake ..' to build")
endif ()

set(MIN_VERSION "3.1.14")
set(MAX_VERSION "3.1.25")
set(MIN_VERSION "3.1.25")
set(MAX_VERSION "3.2.0")
if (${EMSCRIPTEN_VERSION} VERSION_LESS MIN_VERSION)
message(FATAL_ERROR "EMSCRIPTEN version looks too old. Was ${EMSCRIPTEN_VERSION}, should be at least ${MIN_VERSION}.")
endif ()
if (${EMSCRIPTEN_VERSION} VERSION_GREATER MAX_VERSION)
if (${EMSCRIPTEN_VERSION} VERSION_GREATER_EQUAL MAX_VERSION)
message(FATAL_ERROR "EMSCRIPTEN version is too new. Was ${EMSCRIPTEN_VERSION}, should be at least ${MAX_VERSION}.")
endif ()

Expand Down Expand Up @@ -89,7 +89,7 @@ if (EMSCRIPTEN)
"SHELL:-s NO_DISABLE_EXCEPTION_CATCHING"
"SHELL:-s INITIAL_MEMORY=256MB"
"SHELL:-s DEFAULT_PTHREAD_STACK_SIZE=64KB"
"SHELL:-s STACK_SIZE=64KB" # TODO: Once the minimum version of em++ > 3.1.25, please change this to TOTAL_STACK
"SHELL:-s TOTAL_SIZE=64KB"
"SHELL:-s WASM=1"
"SHELL:-s ALLOW_MEMORY_GROWTH"
"SHELL:-s FORCE_FILESYSTEM=1"
Expand Down

0 comments on commit 7088f4d

Please sign in to comment.