Skip to content

Commit

Permalink
Use EXPORTED_RUNTIME_METHODS to prevent aborted runtime errors on xeu…
Browse files Browse the repository at this point in the history
…s-lite kernels
  • Loading branch information
anutosh491 authored Dec 13, 2024
1 parent f2084de commit 2f0fa08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/WasmBuildOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ function(xeus_wasm_link_options target environment)
PUBLIC "SHELL: -s STACK_SIZE=32mb"
PUBLIC "SHELL: -s INITIAL_MEMORY=128mb"
PUBLIC "SHELL: -s WASM_BIGINT"
PUBLIC "SHELL: -s EXPORTED_RUNTIME_METHODS='[\"FS\",\"PATH\",\"LDSO\",\"getDylinkMetadata\",\"loadDynamicLibrary\",\"ERRNO_CODES\"]'"
PUBLIC "SHELL: -s FORCE_FILESYSTEM"
PUBLIC "SHELL: -s MAIN_MODULE=1"
)
endfunction()
endfunction()

0 comments on commit 2f0fa08

Please sign in to comment.