diff options
| author | Sébastien Marie <semarie@users.noreply.github.com> | 2016-12-17 11:22:41 +0100 |
|---|---|---|
| committer | Sébastien Marie <semarie@users.noreply.github.com> | 2016-12-17 14:48:27 +0100 |
| commit | dd0fc0a03a680d76d3454f955648876b2a1ccae8 (patch) | |
| tree | 1e02ba21c3f5c379189891ab8052d61c20fcddd9 | |
| parent | d250169cb5a96481a3e7c8f9fe05de49f60e5ae5 (diff) | |
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.
| -rw-r--r-- | src/build_helper/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/build_helper/lib.rs b/src/build_helper/lib.rs index 07f9c91d3c7..bd036fae689 100644 --- a/src/build_helper/lib.rs +++ b/src/build_helper/lib.rs @@ -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(); |
