We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04c41eb commit 94f0532Copy full SHA for 94f0532
src/librustc/driver/driver.rs
@@ -562,8 +562,8 @@ pub fn phase_6_link_output(sess: &Session,
562
trans: &CrateTranslation,
563
outputs: &OutputFilenames) {
564
let old_path = os::getenv("PATH").unwrap_or_else(||String::new());
565
- let mut new_path = os::split_paths(old_path.as_slice());
566
- new_path.push_all_move(sess.host_filesearch().get_tools_search_paths());
+ let mut new_path = sess.host_filesearch().get_tools_search_paths();
+ new_path.push_all_move(os::split_paths(old_path.as_slice()));
567
os::setenv("PATH", os::join_paths(new_path.as_slice()).unwrap());
568
569
time(sess.time_passes(), "linking", (), |_|
0 commit comments