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

Co-authored-by: Will Lillis <will.lillis24@gmail.com>
This commit is contained in:
Amaan Qureshi 2025-09-12 01:44:27 -04:00 committed by Amaan Qureshi
parent 0c35511aea
commit b863b16454

View file

@ -353,7 +353,6 @@ pub fn run_wasm_stdlib() -> Result<()> {
.collect::<Vec<String>>();
let clang_exe = get_wasi_binary()?;
println!("Using WASI clang at: {}", clang_exe.display());
let output = Command::new(&clang_exe)
.args([
@ -361,6 +360,7 @@ pub fn run_wasm_stdlib() -> Result<()> {
"stdlib.wasm",
"-Os",
"-fPIC",
"-DTREE_SITTER_FEATURE_WASM",
"-Wl,--no-entry",
"-Wl,--stack-first",
"-Wl,-z",
@ -371,6 +371,7 @@ pub fn run_wasm_stdlib() -> Result<()> {
"-Wl,--strip-debug",
"-Wl,--export=__wasm_call_ctors",
"-Wl,--export=__stack_pointer",
"-Wl,--export=reset_heap",
])
.args(&export_flags)
.arg("lib/src/wasm/stdlib.c")