diff options
| author | bors <bors@rust-lang.org> | 2014-09-23 07:15:40 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-09-23 07:15:40 +0000 |
| commit | f351e676cbe594893a043d52a9cd6149c3f47082 (patch) | |
| tree | 788370b9d089fe39fd94d799f2ad86840f2ba246 | |
| parent | 3941d3c3942a4360bcce4635bfdb33f8382d8f2e (diff) | |
| parent | 92cc12b01cb3dd13178c7af59c69a91ca12c3b53 (diff) | |
| download | rust-f351e676cbe594893a043d52a9cd6149c3f47082.tar.gz rust-f351e676cbe594893a043d52a9cd6149c3f47082.zip | |
auto merge of #17443 : alexcrichton/rust/issue-17442, r=brson
...des a full path via -Clinker=..." This reverts commit 94f05324fee6cd4637adc01f441fafd09e678668.
| -rw-r--r-- | src/librustc/driver/driver.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/driver/driver.rs b/src/librustc/driver/driver.rs index b4e7b296268..4ff9133c8a5 100644 --- a/src/librustc/driver/driver.rs +++ b/src/librustc/driver/driver.rs @@ -560,8 +560,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 = sess.host_filesearch().get_tools_search_paths(); - new_path.push_all_move(os::split_paths(old_path.as_slice())); + let mut new_path = os::split_paths(old_path.as_slice()); + new_path.push_all_move(sess.host_filesearch().get_tools_search_paths()); os::setenv("PATH", os::join_paths(new_path.as_slice()).unwrap()); time(sess.time_passes(), "linking", (), |_| |
