Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
0xForerunner committed Sep 5, 2024
1 parent e401734 commit 8b6d81f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions wasm-deploy/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -522,11 +522,10 @@ pub async fn optimize(
.arg("-Oz")
.arg("-o")
.arg(settings.artifacts_dir.join(format!("{}.wasm", bin_name)))
.arg(
settings
.target_dir
.join(format!("wasm32-unknown-unknown/release/{bin_name}.wasm")),
)
.arg(settings.target_dir.join(format!(
"wasm32-unknown-unknown/{}/{bin_name}.wasm",
settings.build_profile
)))
.spawn()
.context(
"Failed optimizing with user installed wasm-opt. \
Expand Down

0 comments on commit 8b6d81f

Please sign in to comment.