From 8315a6277b9e8d8a0b38ec090e42a9a5e1101a3a Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Sat, 27 Apr 2019 17:54:00 -0700 Subject: [PATCH] Increase memory limit for language wasm files --- cli/src/wasm.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli/src/wasm.rs b/cli/src/wasm.rs index 1aaa1f61..7cf77c93 100644 --- a/cli/src/wasm.rs +++ b/cli/src/wasm.rs @@ -52,6 +52,8 @@ pub fn compile_language_to_wasm(language_dir: &Path) -> Result<()> { "-s", "SIDE_MODULE=1", "-s", + "TOTAL_MEMORY=33554432", + "-s", &format!("EXPORTED_FUNCTIONS=[\"_tree_sitter_{}\"]", grammar.name), "-I", "src",