Skip to content

Commit

Permalink
Disconnect ar from cc on OpenBSD
Browse files Browse the repository at this point in the history
OpenBSD usually use an alternative compiler (`egcc') from ports. But the
`ar' is unprefixed as it comes from base.
  • Loading branch information
semarie committed Dec 17, 2016
1 parent d250169 commit dd0fc0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/build_helper/lib.rs
Expand Up @@ -47,6 +47,8 @@ pub fn cc2ar(cc: &Path, target: &str) -> Option<PathBuf> {
None
} else if target.contains("musl") {
Some(PathBuf::from("ar"))
} else if target.contains("openbsd") {
Some(PathBuf::from("ar"))
} else {
let parent = cc.parent().unwrap();
let file = cc.file_name().unwrap().to_str().unwrap();
Expand Down

0 comments on commit dd0fc0a

Please sign in to comment.