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