Skip to content

Commit dd0fc0a

Browse files
committed
Disconnect ar from cc on OpenBSD
OpenBSD usually use an alternative compiler (`egcc') from ports. But the `ar' is unprefixed as it comes from base.
1 parent d250169 commit dd0fc0a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/build_helper/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ pub fn cc2ar(cc: &Path, target: &str) -> Option<PathBuf> {
4747
None
4848
} else if target.contains("musl") {
4949
Some(PathBuf::from("ar"))
50+
} else if target.contains("openbsd") {
51+
Some(PathBuf::from("ar"))
5052
} else {
5153
let parent = cc.parent().unwrap();
5254
let file = cc.file_name().unwrap().to_str().unwrap();

0 commit comments

Comments
 (0)