Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
fix: CARGO_TARGET_DIR_freeze (#9114)
Browse files Browse the repository at this point in the history
  • Loading branch information
eopb authored Jun 15, 2021
1 parent cdc55fe commit 7f09a76
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions utils/wasm-builder/src/prerequisites.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ fn check_wasm_toolchain_installed(
let mut run_cmd = cargo_command.command();
run_cmd.args(&["run", "--manifest-path", &manifest_path]);

// Unset the `CARGO_TARGET_DIR` to prevent a cargo deadlock
build_cmd.env_remove("CARGO_TARGET_DIR");
run_cmd.env_remove("CARGO_TARGET_DIR");

build_cmd
.output()
.map_err(|_| err_msg.clone())
Expand Down

0 comments on commit 7f09a76

Please sign in to comment.