Add back in "Compiling for Wasm ..."

master
Alex Crichton 6 years ago
parent 66a9b70282
commit 116c456a19
  1. 3
      src/build.rs
  2. 4
      src/command/build.rs

@ -74,8 +74,11 @@ pub fn rustup_add_wasm_target(step: &Step) -> Result<(), Error> {
pub fn cargo_build_wasm(
path: &Path,
profile: BuildProfile,
step: &Step,
extra_options: &Vec<String>,
) -> Result<(), Error> {
let msg = format!("{}Compiling to Wasm...", emoji::CYCLONE);
PBAR.step(step, &msg);
let mut cmd = Command::new("cargo");
cmd.current_dir(path).arg("build").arg("--lib");
match profile {

@ -319,9 +319,9 @@ impl Build {
Ok(())
}
fn step_build_wasm(&mut self, _step: &Step) -> Result<(), Error> {
fn step_build_wasm(&mut self, step: &Step) -> Result<(), Error> {
info!("Building wasm...");
build::cargo_build_wasm(&self.crate_path, self.profile, &self.extra_options)?;
build::cargo_build_wasm(&self.crate_path, self.profile, step, &self.extra_options)?;
info!(
"wasm built at {:#?}.",

Loading…
Cancel
Save