]> git.lizzy.rs Git - rust.git/commitdiff
Prefer bundled gcc. External gcc can still be used if one provides a full path via...
authorVadim Chugunov <vadimcn@gmail.com>
Sat, 20 Sep 2014 18:44:01 +0000 (11:44 -0700)
committerVadim Chugunov <vadimcn@gmail.com>
Sat, 20 Sep 2014 18:44:01 +0000 (11:44 -0700)
src/librustc/driver/driver.rs

index bb454e07fc158eb32c01ba7373071c9a06fa4fae..2d543d13065e77e5c8b2b52ab0ff4bdc4af52ab9 100644 (file)
@@ -562,8 +562,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.push_all_move(sess.host_filesearch().get_tools_search_paths());
+    let mut new_path = sess.host_filesearch().get_tools_search_paths();
+    new_path.push_all_move(os::split_paths(old_path.as_slice()));
     os::setenv("PATH", os::join_paths(new_path.as_slice()).unwrap());
 
     time(sess.time_passes(), "linking", (), |_|