diff --git a/build/Makefile b/build/Makefile index e12fd95..3a29c0c 100755 --- a/build/Makefile +++ b/build/Makefile @@ -6,7 +6,9 @@ WASM_LDFLAGS := -nostartfiles # These are project-specific and are expected to be kept intact WASM_TARGET := -target wasm32-unknown-wasi WASM_EXTRA_CFLAGS := -I include-wasm/ -Wno-logical-op-parentheses -Wno-parentheses -Oz +WASM_EXTRA_CFLAGS += -flto -mllvm -inline-threshold=150 WASM_EXTRA_LDFLAGS := -Wl,-z,stack-size=13312,--no-entry,--compress-relocations,--strip-all +WASM_EXTRA_LDFLAGS += -Wl,--mllvm=-inline-threshold=150 WASM_EXTRA_LDFLAGS += -Wl,--export=__heap_base,--export=parseCJS,--export=sa WASM_EXTRA_LDFLAGS += -Wl,--export=parseCJSWithOptions WASM_EXTRA_LDFLAGS += -Wl,--export=e,--export=re,--export=es,--export=ee diff --git a/lib/lexer.wasm b/lib/lexer.wasm index 0dad6f3..35effda 100755 Binary files a/lib/lexer.wasm and b/lib/lexer.wasm differ