summaryrefslogtreecommitdiff
path: root/src/asm2wasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/asm2wasm.h')
-rw-r--r--src/asm2wasm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/asm2wasm.h b/src/asm2wasm.h
index 7fa252c8c..3dabdc471 100644
--- a/src/asm2wasm.h
+++ b/src/asm2wasm.h
@@ -1537,6 +1537,9 @@ void Asm2WasmBuilder::optimize() {
passRunner.add("remove-unused-names");
passRunner.add("merge-blocks");
passRunner.add("simplify-locals");
+ if (maxGlobal < 1024) {
+ passRunner.add("post-emscripten");
+ }
passRunner.run(&wasm);
}