From bb0dff0d785630e48280ab0a076d74914584a734 Mon Sep 17 00:00:00 2001 From: messense Date: Fri, 11 Feb 2022 16:58:52 +0800 Subject: [PATCH] Defaults to musllinux_1_2 for musl target if it's not bin bindings --- Changelog.md | 1 + src/build_options.rs | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Changelog.md b/Changelog.md index 6024ace0e..6ca0aa46d 100644 --- a/Changelog.md +++ b/Changelog.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] * Add support for `pyo3-ffi` by ijl in [#804](https://github.com/PyO3/maturin/pull/804) +* Defaults to `musllinux_1_2` for musl target if it's not bin bindings in [#808](https://github.com/PyO3/maturin/pull/808) ## [0.12.9] - 2022-02-09 diff --git a/src/build_options.rs b/src/build_options.rs index 4006809fe..43c953940 100644 --- a/src/build_options.rs +++ b/src/build_options.rs @@ -325,7 +325,12 @@ impl BuildOptions { Some(target.get_minimum_manylinux_tag()) } } else { - None + // Defaults to musllinux_1_2 for musl target if it's not bin bindings + if target.is_musl_target() && !matches!(bridge, BridgeModel::Bin) { + Some(PlatformTag::Musllinux { x: 1, y: 2 }) + } else { + None + } }); if platform_tag == Some(PlatformTag::manylinux1()) { eprintln!("⚠️ Warning: manylinux1 is unsupported by the Rust compiler.");