Skip to content

Commit

Permalink
Merge pull request #831 from brson/beef-docs
Browse files Browse the repository at this point in the history
Beef up hack documentation
  • Loading branch information
alexcrichton authored Nov 23, 2016
2 parents 4d38610 + 82c0063 commit c881e5d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/rustup/toolchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,11 @@ impl<'a> Toolchain<'a> {
// variable, _not_ the rustc.exe sitting in the same directory as the
// fallback. See the `fallback_cargo_calls_correct_rustc` testcase and
// PR 812.
//
// On Windows, spawning a process will search the running application's
// directory for the exe to spawn before searching PATH, and we don't want
// it to do that, because cargo's directory contains the _wrong_ rustc. See
// the documantation for the lpCommandLine argument of CreateProcess.
let exe_path = if cfg!(windows) {
use std::fs;
let fallback_dir = self.cfg.multirust_dir.join("fallback");
Expand Down

0 comments on commit c881e5d

Please sign in to comment.