From 61a2ff6f24f4ec394aab2352bc3960ca5aba5055 Mon Sep 17 00:00:00 2001 From: messense Date: Fri, 7 May 2021 12:45:08 +0800 Subject: [PATCH] Fix s390x architecture support --- Changelog.md | 1 + src/target.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Changelog.md b/Changelog.md index bee7ce913..fb83f0295 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 * Always output PEP 600 platform tags in [#525](https://github.com/PyO3/maturin/pull/525) * Fix missing `PyInit_` warning with Rust submodule in [#528](https://github.com/PyO3/maturin/pull/528) * Better cross compiling support for PyO3 binding on Unix in [#454](https://github.com/PyO3/maturin/pull/454) +* Fix s390x architecture support in [#530](https://github.com/PyO3/maturin/pull/530) ## 0.10.4 - 2021-04-28 diff --git a/src/target.rs b/src/target.rs index 41d6fdfe5..bdd1fb79f 100644 --- a/src/target.rs +++ b/src/target.rs @@ -68,6 +68,7 @@ fn get_supported_architectures(os: &Os) -> Vec { Arch::Armv7L, Arch::Powerpc64, Arch::Powerpc64Le, + Arch::S390X, Arch::X86, Arch::X86_64, ], @@ -128,6 +129,7 @@ impl Target { { Arch::Powerpc64Le } + platforms::target::Arch::S390X => Arch::S390X, unsupported => bail!("The architecture {} is not supported", unsupported), };