Skip to content

Commit

Permalink
fix(xtask): use canonical cargo_home location
Browse files Browse the repository at this point in the history
  • Loading branch information
mkroening committed Feb 12, 2025
1 parent c5de678 commit 47455e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions hermit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,6 @@ common-os = ["hermit-abi", "generic_once_cell", "libm", "spinning_top", "take-st
[build-dependencies]
cc = "1"
flate2 = "1"
home = "0.5"
ureq = "3"
tar = "0.4"
2 changes: 1 addition & 1 deletion hermit/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ fn cargo() -> Command {
let exe = format!("cargo{}", env::consts::EXE_SUFFIX);
// On windows, the userspace toolchain ends up in front of the rustup proxy in $PATH.
// To reach the rustup proxy nonetheless, we explicitly query $CARGO_HOME.
let mut cargo_home = PathBuf::from(env::var_os("CARGO_HOME").unwrap());
let mut cargo_home = home::cargo_home().unwrap();
cargo_home.push("bin");
cargo_home.push(&exe);
if cargo_home.exists() {
Expand Down

0 comments on commit 47455e9

Please sign in to comment.