From 35b8b529d85b70afe93b9942a7d5f3fc2a1c441c Mon Sep 17 00:00:00 2001 From: Dimitri Karamazov Date: Tue, 15 Jun 2021 13:24:07 +0000 Subject: [PATCH 1/2] Support i386 on OpenBSD --- src/target.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/target.rs b/src/target.rs index b01ad1031..523101fff 100644 --- a/src/target.rs +++ b/src/target.rs @@ -74,7 +74,7 @@ fn get_supported_architectures(os: &Os) -> Vec { 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], } } @@ -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, From 6b58517172ebc99530298a911e771b9d6e4622d1 Mon Sep 17 00:00:00 2001 From: Dimitri Karamazov Date: Wed, 16 Jun 2021 02:36:51 +0000 Subject: [PATCH 2/2] Update Changelog --- Changelog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Changelog.md b/Changelog.md index 4bdd92f38..1bd8dab0e 100644 --- a/Changelog.md +++ b/Changelog.md @@ -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