Skip to content

Commit

Permalink
Prefer non-gcc-ar/ranlib
Browse files Browse the repository at this point in the history
Sometimes `gcc-ar` is broken, so when both are available we should
prefer non-gcc-ar. See also rust-lang/cc-rs#741.
  • Loading branch information
Jon Gjengset committed Oct 31, 2022
1 parent c13be3c commit 2683057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Expand Up @@ -357,7 +357,7 @@ impl Build {
break;
}

for &infix in &[suffix, ""] {
for &infix in &["", suffix] {
let candidate = format!("{}{}-{}", path, infix, tool.to_lowercase());
// Only choose a tool if it's actually executable
if Command::new(&candidate).output().is_ok() {
Expand Down

0 comments on commit 2683057

Please sign in to comment.