Avoid some bloat in wasm build

This commit is contained in:
Max Brunsfeld 2019-05-01 11:29:35 -07:00
parent 7d1aa10f73
commit a6a50a6320
7 changed files with 165 additions and 20 deletions

View file

@ -55,6 +55,7 @@ pub fn compile_language_to_wasm(language_dir: &Path) -> Result<()> {
"TOTAL_MEMORY=33554432",
"-s",
&format!("EXPORTED_FUNCTIONS=[\"_tree_sitter_{}\"]", grammar.name),
"-fno-exceptions",
"-I",
"src",
]);