fix(xtask): make building the wasm stdlib work again

Co-authored-by: Will Lillis <will.lillis24@gmail.com>
(cherry picked from commit b863b16454)
This commit is contained in:
Amaan Qureshi 2025-09-12 01:44:27 -04:00 committed by Amaan Qureshi
parent 20dad25cce
commit e29a5ee82e

View file

@ -223,6 +223,7 @@ pub fn run_wasm_stdlib() -> Result<()> {
"stdlib.wasm",
"-Os",
"-fPIC",
"-DTREE_SITTER_FEATURE_WASM",
"-Wl,--no-entry",
"-Wl,--stack-first",
"-Wl,-z",
@ -234,6 +235,7 @@ pub fn run_wasm_stdlib() -> Result<()> {
"-Wl,--export=reset_heap",
"-Wl,--export=__wasm_call_ctors",
"-Wl,--export=__stack_pointer",
"-Wl,--export=reset_heap",
])
.args(export_flags)
.arg("lib/src/wasm/stdlib.c")