Skip to content

Commit

Permalink
Also use rust flate2 backend on powerpc64le
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterthanlime committed Sep 6, 2024
1 parent 855cff4 commit a312719
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/uv-production-flate2-backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name = "uv-production-flate2-backend"
version = "0.1.0"
publish = false

[target.'cfg(not(target_arch = "s390x"))'.dependencies]
[target.'cfg(not(any(target_arch = "s390x", target_arch = "powerpc64le")))'.dependencies]
flate2 = { version = "1.0.28", default-features = false, features = ["zlib-ng"] }

[target.'cfg(target_arch = "s390x")'.dependencies]
[target.'cfg(any(target_arch = "s390x", target_arch = "powerpc64le"))'.dependencies]
flate2 = { version = "1.0.28", default-features = false, features = ["rust_backend"] }
4 changes: 3 additions & 1 deletion crates/uv-production-flate2-backend/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! The sole purpose of this crate is to enable one of
//! `flate2/zlib-ng` (on most platforms) or `flate2/rust_backend`
//! (on s390x)
//! (on s390x, powerpc64le, etc. — anywhere libz-ng doesn't build)
//!
//! See `Cargo.toml`

0 comments on commit a312719

Please sign in to comment.