rebuild std for the tree-sitter wasm parsers (#12566)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ruben Fiszel
2026-11-20 13:46:01 +01:00
committed by GitHub
co-authored by Claude Opus 5.5
parent e061d11826
commit b8a24bdd5c
@@ -147,7 +147,8 @@ def main [
"tree-sitter" => {
$env.CFLAGS_wasm32_unknown_unknown = $"-I(pwd)/wasm-sysroot -Wbad-function-cast -Wcast-function-type -fno-builtin"
$env.RUSTFLAGS = "-Zwasm-c-abi=spec"
wasm-pack build ($profile) --target ($tar) --out-dir $env.OUT_DIR --features $t.features
# The release profile's `immediate-abort` panic strategy needs std rebuilt to match.
wasm-pack build ($profile) --target ($tar) --out-dir $env.OUT_DIR --features $t.features -Z build-std=panic_abort,std
},
_ => { panic $"Unknown env template: ($t.env)" },
}