Skip to content

Commit 0d930cb

Browse files
committed
Revert "rustc_driver: Use the target tools PATH"
This reverts commit e7a71e8.
1 parent dab8aa0 commit 0d930cb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustc_driver/driver.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -761,8 +761,7 @@ pub fn phase_6_link_output(sess: &Session,
761761
trans: &trans::CrateTranslation,
762762
outputs: &OutputFilenames) {
763763
let old_path = env::var_os("PATH").unwrap_or(OsString::new());
764-
let mut new_path = sess.target_filesearch(PathKind::All)
765-
.get_tools_search_paths();
764+
let mut new_path = sess.host_filesearch(PathKind::All).get_tools_search_paths();
766765
new_path.extend(env::split_paths(&old_path));
767766
env::set_var("PATH", &env::join_paths(new_path.iter()).unwrap());
768767

0 commit comments

Comments
 (0)