about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorVadim Chugunov <vadimcn@gmail.com>2014-11-08 18:26:28 -0800
committerVadim Chugunov <vadimcn@gmail.com>2014-11-08 18:33:42 -0800
commitad777778d4074a48dbd9fcbcbf6eecce7344db1a (patch)
treebdd3384331ad9f36653d8ce278b4737be842fa55 /src
parent5cd4862c69fe6c27010c792aef6cfa053e56c137 (diff)
downloadrust-ad777778d4074a48dbd9fcbcbf6eecce7344db1a.tar.gz
rust-ad777778d4074a48dbd9fcbcbf6eecce7344db1a.zip
Prefer bundled linker.
Diffstat (limited to 'src')
-rw-r--r--src/librustc/driver/driver.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/driver/driver.rs b/src/librustc/driver/driver.rs
index d347f113af3..e8a7575f01a 100644
--- a/src/librustc/driver/driver.rs
+++ b/src/librustc/driver/driver.rs
@@ -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", (), |_|