Skip to content

Commit

Permalink
Prefer bundled linker.
Browse files Browse the repository at this point in the history
  • Loading branch information
vadimcn committed Nov 9, 2014
1 parent 5cd4862 commit ad77777
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc/driver/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -568,8 +568,8 @@ pub fn phase_6_link_output(sess: &Session,
trans: &CrateTranslation,
outputs: &OutputFilenames) {
let old_path = os::getenv("PATH").unwrap_or_else(||String::new());
let mut new_path = os::split_paths(old_path.as_slice());
new_path.extend(sess.host_filesearch().get_tools_search_paths().into_iter());
let mut new_path = sess.host_filesearch().get_tools_search_paths();
new_path.extend(os::split_paths(old_path.as_slice()).into_iter());
os::setenv("PATH", os::join_paths(new_path.as_slice()).unwrap());

time(sess.time_passes(), "linking", (), |_|
Expand Down

0 comments on commit ad77777

Please sign in to comment.