From a9dfcb9e4765d8466816a80b87e70a0aa928719c Mon Sep 17 00:00:00 2001 From: Andrew Hlynskyi Date: Mon, 15 May 2023 17:04:18 +0300 Subject: [PATCH] script/build-wasm: update emcc options to use actual non-deprecated names --- script/build-wasm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/build-wasm b/script/build-wasm index ea3c6f0f..ef0517b8 100755 --- a/script/build-wasm +++ b/script/build-wasm @@ -91,10 +91,10 @@ runtime_methods='stringToUTF16','AsciiToString' # in the `target/scratch` directory $emcc \ -s WASM=1 \ - -s TOTAL_MEMORY=33554432 \ + -s INITIAL_MEMORY=33554432 \ -s ALLOW_MEMORY_GROWTH=1 \ -s MAIN_MODULE=2 \ - -s NO_FILESYSTEM=1 \ + -s FILESYSTEM=0 \ -s NODEJS_CATCH_EXIT=0 \ -s NODEJS_CATCH_REJECTION=0 \ -s EXPORTED_FUNCTIONS=@${web_dir}/exports.json \