Skip to content

Commit

Permalink
refactor(gear-wasm-builder): fix building in a clear workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
fluiderson committed Jul 21, 2023
1 parent d5b4123 commit 3eda811
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/wasm-builder/src/wasm_project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ impl WasmProject {
.as_ref()
.expect("Run `WasmProject::create_project()` first");

fs::create_dir_all(&self.wasm_target_dir)?;

let wasm_meta_path = self
.wasm_target_dir
.join([file_base_name, ".meta.txt"].concat());
Expand Down Expand Up @@ -394,7 +396,6 @@ extern "C" fn metahash() {{
.join(format!("{}.wasm", &file_base_name));

fs::create_dir_all(&self.target_dir)?;
fs::create_dir_all(&self.wasm_target_dir)?;

if self.project_type.is_metawasm() {
self.postprocess_meta(&original_wasm_path, file_base_name)?;
Expand Down

0 comments on commit 3eda811

Please sign in to comment.