Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defaults to musllinux_1_2 for musl target if it's not bin bindings #808

Merged
merged 1 commit into from
Feb 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 6 additions & 1 deletion src/build_options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down