Skip to content

Commit f9db7bd

Browse files
fix WASM artefacts by upgrading emscripten, forcing filesystem access and setting environment=node (#1850)
Co-authored-by: EmelyanenkoK <[email protected]>
1 parent 2f352bc commit f9db7bd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

assembly/wasm/fift-func-wasm-build-ubuntu.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ echo
7070
fi
7171

7272
cd emsdk
73-
./emsdk install 3.1.19
74-
./emsdk activate 3.1.19
73+
./emsdk install 4.0.17
74+
./emsdk activate 4.0.17
7575
EMSDK_DIR=`pwd`
7676

7777
. $EMSDK_DIR/emsdk_env.sh

emulator/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ if (USE_EMSCRIPTEN)
6363
target_link_options(emulator-emscripten PRIVATE -sIGNORE_MISSING_MAIN=1)
6464
target_link_options(emulator-emscripten PRIVATE -sAUTO_NATIVE_LIBRARIES=0)
6565
target_link_options(emulator-emscripten PRIVATE -sMODULARIZE=1)
66-
target_link_options(emulator-emscripten PRIVATE -sENVIRONMENT=web)
67-
target_link_options(emulator-emscripten PRIVATE -sFILESYSTEM=0)
66+
target_link_options(emulator-emscripten PRIVATE -sENVIRONMENT=node)
67+
target_link_options(emulator-emscripten PRIVATE -sFORCE_FILESYSTEM=1)
6868
target_link_options(emulator-emscripten PRIVATE -sALLOW_MEMORY_GROWTH=1)
6969
target_link_options(emulator-emscripten PRIVATE -fexceptions)
7070
if (USE_EMSCRIPTEN_NO_WASM)

0 commit comments

Comments
 (0)