about summary refs log tree commit diff
diff options
context:
space:
mode:
authorpierzchalski <e.a.pierzchalski@gmail.com>2016-04-04 21:14:15 +1000
committerpierzchalski <e.a.pierzchalski@gmail.com>2016-04-04 21:14:15 +1000
commit0fe1359885288537833d4b8cd6db724b46ea07b7 (patch)
treeedefbdeda42c9eff8d07e0a91d0a8759ac7c1035
parent1e9595e1169a31b518d72c9c64e990a20faec869 (diff)
downloadrust-0fe1359885288537833d4b8cd6db724b46ea07b7.tar.gz
rust-0fe1359885288537833d4b8cd6db724b46ea07b7.zip
whoops
-rw-r--r--src/build_helper/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build_helper/lib.rs b/src/build_helper/lib.rs
index 87e93afcf09..8e1da69cf02 100644
--- a/src/build_helper/lib.rs
+++ b/src/build_helper/lib.rs
@@ -48,7 +48,7 @@ pub fn cc2ar(cc: &Path, target: &str) -> PathBuf {
         for suffix in &["gcc", "cc", "clang"] {
             if let Some(idx) = file.rfind(suffix) {
                 let mut file = file[..idx].to_owned();
-                file.push_str(suffix);
+                file.push_str("ar");
                 return parent.join(&file);
             }
         }