From 2f0fa0893b7994a8ada5f17f1470f6a9c00b5b64 Mon Sep 17 00:00:00 2001 From: Anutosh Bhat Date: Fri, 13 Dec 2024 16:25:15 +0530 Subject: [PATCH] Use EXPORTED_RUNTIME_METHODS to prevent aborted runtime errors on xeus-lite kernels --- cmake/WasmBuildOptions.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/WasmBuildOptions.cmake b/cmake/WasmBuildOptions.cmake index 7ac04c96..2878a3a3 100644 --- a/cmake/WasmBuildOptions.cmake +++ b/cmake/WasmBuildOptions.cmake @@ -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() \ No newline at end of file +endfunction()