Skip to content

Commit

Permalink
update emscripten to 3.1.26
Browse files Browse the repository at this point in the history
Co-authored-by: Brandon Trussell <brandon2k3@gmail.com>
  • Loading branch information
woodser and NorrinRadd committed Aug 14, 2024
1 parent 039d11d commit ab6e2b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ EMCC_LINKER_FLAGS_BASE
# unsure if the -I...boost..include is necessary here due to include above
# TODO? does EXPORT_NAME need to be the same for both targets? (or should it be set per-target with …_WASM, …_ASMJS?)

"-Wall -Werror -Wl,--allow-undefined -std=c++14 -Oz \
"-Wall -Werror -Wno-js-compiler -Wl,--allow-undefined -std=c++14 -Oz \
--bind \
-s MODULARIZE=1 \
-s 'EXPORT_NAME=\"monero_ts\"' \
Expand All @@ -296,6 +296,7 @@ EMCC_LINKER_FLAGS_BASE
-s EXPORTED_RUNTIME_METHODS='[\"UTF8ToString\",\"stringToUTF8\",\"lengthBytesUTF8\",\"intArrayToString\",\"getTempRet0\",\"addFunction\"]' \
-s WASM=1 \
-s ALLOW_MEMORY_GROWTH=1 \
-s WASM_BIGINT=1 \
"
# • Disabling exception catching does not introduce silent failures
# • Probably don't need PRECISE_F32 but wouldn't want to not use it
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Compiled WebAssembly binaries are committed to ./dist for convenience, but these
1. Install and activate emscripten.
1. Clone emscripten repository: `git clone https://github.com/emscripten-core/emsdk.git`
2. `cd emsdk`
3. `git pull && ./emsdk install 3.1.10 && ./emsdk activate 3.1.10 && source ./emsdk_env.sh`
3. `git pull && ./emsdk install 3.1.26 && ./emsdk activate 3.1.26 && source ./emsdk_env.sh`
4. `export EMSCRIPTEN=path/to/emsdk/upstream/emscripten` (change for your system)
2. Clone monero-ts repository: `git clone --recursive https://github.com/woodser/monero-ts.git`
3. `cd monero-ts`
Expand Down

0 comments on commit ab6e2b5

Please sign in to comment.