Skip to content

Commit

Permalink
Support i386 on OpenBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri Karamazov committed Jun 15, 2021
1 parent 83701d7 commit 35b8b52
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ fn get_supported_architectures(os: &Os) -> Vec<Arch> {
Os::Windows => vec![Arch::X86, Arch::X86_64, Arch::Aarch64],
Os::Macos => vec![Arch::Aarch64, Arch::X86_64],
Os::FreeBsd => vec![Arch::X86_64],
Os::OpenBsd => vec![Arch::X86_64],
Os::OpenBsd => vec![Arch::X86, Arch::X86_64],
}
}

Expand Down Expand Up @@ -150,6 +150,14 @@ impl Target {
let release = info.release().replace(".", "_").replace("-", "_");
format!("freebsd_{}_amd64", release)
}
(Os::OpenBsd, Arch::X86) => {
let info = match PlatformInfo::new() {
Ok(info) => info,
Err(error) => panic!("{}", error),
};
let release = info.release().replace(".", "_").replace("-", "_");
format!("openbsd_{}_i386", release)
}
(Os::OpenBsd, Arch::X86_64) => {
let info = match PlatformInfo::new() {
Ok(info) => info,
Expand Down

0 comments on commit 35b8b52

Please sign in to comment.