Skip to content

Commit

Permalink
Merge pull request #568 from dkarama/main
Browse files Browse the repository at this point in the history
Support i386 on OpenBSD
  • Loading branch information
messense authored Jun 16, 2021
2 parents 83701d7 + 6b58517 commit 4a61dca
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Add PEP 656 musllinux support in [#543](https://github.com/PyO3/maturin/pull/543)
* `--manylinux` is now called `--compatibility` and supports musllinux
* The pure rust install layout changed from just the shared library to a python module that reexports the shared library. This should have now observable consequences for users of the created wheel expect that `my_project.my_project` is now also importable (and equal to just `my_project`)
* Support i386 on OpenBSD in [#568](https://github.com/PyO3/maturin/pull/568)

## 0.10.6 - 2021-05-21

Expand Down
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 4a61dca

Please sign in to comment.