Skip to content

Commit 94f0532

Browse files
committed
Prefer bundled gcc. External gcc can still be used if one provides a full path via -Clinker=...
1 parent 04c41eb commit 94f0532

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
@@ -562,8 +562,8 @@ pub fn phase_6_link_output(sess: &Session,
562562
trans: &CrateTranslation,
563563
outputs: &OutputFilenames) {
564564
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());
565+
let mut new_path = sess.host_filesearch().get_tools_search_paths();
566+
new_path.push_all_move(os::split_paths(old_path.as_slice()));
567567
os::setenv("PATH", os::join_paths(new_path.as_slice()).unwrap());
568568

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

0 commit comments

Comments
 (0)