fix(xtask): make building the wasm stdlib work again
Co-authored-by: Will Lillis <will.lillis24@gmail.com>
This commit is contained in:
parent
0c35511aea
commit
b863b16454
1 changed files with 2 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue