Skip to content

Commit

Permalink
for toolchains without cargo, set up environment to match rustc, not …
Browse files Browse the repository at this point in the history
…cargo
  • Loading branch information
RalfJung committed Nov 3, 2019
1 parent e44868f commit 104f180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/toolchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ impl<'a> Toolchain<'a> {
src_file
};
let mut cmd = Command::new(exe_path);
self.set_env(&mut cmd);
primary_toolchain.set_env(&mut cmd); // set up the environment to match rustc, not cargo
cmd.env("RUSTUP_TOOLCHAIN", &primary_toolchain.name);
Ok(cmd)
}
Expand Down

0 comments on commit 104f180

Please sign in to comment.