From 15bf75a2f92578832a963a3d14d5174d41ea9c3c Mon Sep 17 00:00:00 2001 From: Paul Young Date: Tue, 4 Jun 2019 17:17:25 -0700 Subject: [PATCH] Fix ALLOW_MEMORY_GROWTH setting Fixes ERROR:root:ALLOW_MEMORY_GROWTH: No such file or directory ("ALLOW_MEMORY_GROWTH" was expected to be an input file, based on the commandline arguments provided) according to https://emscripten.org/docs/optimizing/Optimizing-Code.html#memory-growth --- script/build-wasm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/build-wasm b/script/build-wasm index 9327f2dc..d930d47c 100755 --- a/script/build-wasm +++ b/script/build-wasm @@ -84,7 +84,7 @@ mkdir -p target/scratch $emcc \ -s WASM=1 \ -s TOTAL_MEMORY=33554432 \ - -s ALLOW_MEMORY_GROWTH \ + -s ALLOW_MEMORY_GROWTH=1 \ -s MAIN_MODULE=2 \ -s NO_FILESYSTEM=1 \ -s "EXPORTED_FUNCTIONS=${exports}" \