Skip to content

Commit

Permalink
fix: use correct binary directory for debug
Browse files Browse the repository at this point in the history
Signed-off-by: Lohachov Mykhailo <lohachov@soramitsu.co.jp>
  • Loading branch information
aoyako committed Oct 30, 2024
1 parent 5384b00 commit 986a835
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/iroha_wasm_builder/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@ mod internal {
.retrieve_package_name()
.wrap_err("Failed to retrieve package name")?;

let full_out_dir = self.out_dir.join("wasm32-unknown-unknown/release/");
let build_mode_dir = if self.release { "release" } else { "debug" };
let full_out_dir = self.out_dir.join(format!("wasm32-unknown-unknown/{build_mode_dir}/"));
let wasm_file = full_out_dir.join(package_name).with_extension("wasm");

let previous_hash = if wasm_file.exists() {
Expand Down

0 comments on commit 986a835

Please sign in to comment.