From c2f8453fab009376e42035b0081df0ef8c579327 Mon Sep 17 00:00:00 2001 From: Ian Bell Date: Mon, 21 Apr 2025 12:42:16 -0400 Subject: [PATCH] Memory needs to be a multiple of 64 KiB Add correct permissions --- .github/workflows/javascript_builder.yml | 1 + CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/javascript_builder.yml b/.github/workflows/javascript_builder.yml index d7ab22b2..d742f608 100644 --- a/.github/workflows/javascript_builder.yml +++ b/.github/workflows/javascript_builder.yml @@ -17,6 +17,7 @@ jobs: runs-on: ubuntu-latest container: image: emscripten/emsdk + options: --user 1001 steps: - uses: actions/checkout@v3 diff --git a/CMakeLists.txt b/CMakeLists.txt index aa6a6cad..4b668baa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1866,7 +1866,7 @@ if(COOLPROP_JAVASCRIPT_MODULE) # endif() set(CMAKE_EXE_LINKER_FLAGS - "--bind ${EMSCRIPTEN_INIT_FLAG} -s ASSERTIONS=1 -s DISABLE_EXCEPTION_CATCHING=0 -sINITIAL_MEMORY=40000000" + "--bind ${EMSCRIPTEN_INIT_FLAG} -s ASSERTIONS=1 -s DISABLE_EXCEPTION_CATCHING=0 -sINITIAL_MEMORY=39321600" ) set(CMAKE_BUILD_TYPE Release)