Skip to content

Commit 92cc12b

Browse files
committed
Revert "Prefer bundled gcc. External gcc can still be used if one provides a full path via -Clinker=..."
This reverts commit 94f0532.
1 parent 3907a13 commit 92cc12b

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
@@ -560,8 +560,8 @@ pub fn phase_6_link_output(sess: &Session,
560560
trans: &CrateTranslation,
561561
outputs: &OutputFilenames) {
562562
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()));
563+
let mut new_path = os::split_paths(old_path.as_slice());
564+
new_path.push_all_move(sess.host_filesearch().get_tools_search_paths());
565565
os::setenv("PATH", os::join_paths(new_path.as_slice()).unwrap());
566566

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

0 commit comments

Comments
 (0)