Skip to content

Commit

Permalink
Merge pull request #2108 from RalfJung/fallback-env
Browse files Browse the repository at this point in the history
for toolchains without cargo, set up environment to match rustc, not cargo
  • Loading branch information
kinnison authored Nov 3, 2019
2 parents cdbecfb + 104f180 commit 3e177e6
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 3e177e6

Please sign in to comment.