Skip to content

Commit ad77777

Browse files
committed
Prefer bundled linker.
1 parent 5cd4862 commit ad77777

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/driver/driver.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -568,8 +568,8 @@ pub fn phase_6_link_output(sess: &Session,
568568
trans: &CrateTranslation,
569569
outputs: &OutputFilenames) {
570570
let old_path = os::getenv("PATH").unwrap_or_else(||String::new());
571-
let mut new_path = os::split_paths(old_path.as_slice());
572-
new_path.extend(sess.host_filesearch().get_tools_search_paths().into_iter());
571+
let mut new_path = sess.host_filesearch().get_tools_search_paths();
572+
new_path.extend(os::split_paths(old_path.as_slice()).into_iter());
573573
os::setenv("PATH", os::join_paths(new_path.as_slice()).unwrap());
574574

575575
time(sess.time_passes(), "linking", (), |_|

0 commit comments

Comments
 (0)