Merge pull request #330 from rustwasm/force-lib-build

feat(build): force lib build only
master
ashley williams 7 years ago committed by GitHub
commit 7df088caad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/build.rs

@ -52,7 +52,10 @@ pub fn cargo_build_wasm(path: &Path, debug: bool, step: &Step) -> Result<(), Err
PBAR.step(step, &msg);
let output = {
let mut cmd = Command::new("cargo");
cmd.current_dir(path).arg("+nightly").arg("build");
cmd.current_dir(path)
.arg("+nightly")
.arg("build")
.arg("--lib");
if !debug {
cmd.arg("--release");
}

Loading…
Cancel
Save