Skip to content

Commit 4a61dca

Browse files
authored
Merge pull request #568 from dkarama/main
Support i386 on OpenBSD
2 parents 83701d7 + 6b58517 commit 4a61dca

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
* Add PEP 656 musllinux support in [#543](https://github.com/PyO3/maturin/pull/543)
1313
* `--manylinux` is now called `--compatibility` and supports musllinux
1414
* 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`)
15+
* Support i386 on OpenBSD in [#568](https://github.com/PyO3/maturin/pull/568)
1516

1617
## 0.10.6 - 2021-05-21
1718

src/target.rs

+9-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ fn get_supported_architectures(os: &Os) -> Vec<Arch> {
7474
Os::Windows => vec![Arch::X86, Arch::X86_64, Arch::Aarch64],
7575
Os::Macos => vec![Arch::Aarch64, Arch::X86_64],
7676
Os::FreeBsd => vec![Arch::X86_64],
77-
Os::OpenBsd => vec![Arch::X86_64],
77+
Os::OpenBsd => vec![Arch::X86, Arch::X86_64],
7878
}
7979
}
8080

@@ -150,6 +150,14 @@ impl Target {
150150
let release = info.release().replace(".", "_").replace("-", "_");
151151
format!("freebsd_{}_amd64", release)
152152
}
153+
(Os::OpenBsd, Arch::X86) => {
154+
let info = match PlatformInfo::new() {
155+
Ok(info) => info,
156+
Err(error) => panic!("{}", error),
157+
};
158+
let release = info.release().replace(".", "_").replace("-", "_");
159+
format!("openbsd_{}_i386", release)
160+
}
153161
(Os::OpenBsd, Arch::X86_64) => {
154162
let info = match PlatformInfo::new() {
155163
Ok(info) => info,

0 commit comments

Comments
 (0)