This commit is contained in:
pierzchalski 2016-04-04 21:14:15 +10:00
parent 1e9595e116
commit 0fe1359885

View File

@ -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);
}
}