Skip to content

Commit

Permalink
add more updates
Browse files Browse the repository at this point in the history
  • Loading branch information
insipx committed Oct 23, 2024
1 parent 330e2ef commit ca8e135
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xtask/src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ pub fn build_bindings_wasm(extra_args: &[String], flags: flags::BindingsWasm) ->

sp.text("running wasm-opt").update();
step_run_wasm_opt(&pkg_directory, spinner_update)?;
sp.text("package `bindings_wasm` built 🦀");
sp.success();
Ok(())
}
Expand All @@ -74,6 +75,7 @@ pub fn cargo_build<T>(extra_args: &[String], f: impl Fn(&str) -> T) -> Result<()
sh,
"cargo build -p {BINDINGS_WASM} --target wasm32-unknown-unknown {extra_args...}"
);
f(&format!("{}", cmd));
pretty_print(cmd, f)?;

Ok(())
Expand All @@ -88,6 +90,7 @@ pub fn step_wasm_bindgen_build<T>(
let sh = Shell::new()?;
// let _env = sh.push_env("RUSTFLAGS", crate::RUSTFLAGS);
let cmd = cmd!(sh, "wasm-bindgen {wasm_path} --out-dir {pkg_directory} --typescript --target web --split-linked-modules");
f(&format!("{}", cmd));
pretty_print(cmd, f)?;
Ok(())
}
Expand Down

0 comments on commit ca8e135

Please sign in to comment.