From a312719def62c2cf0067b046ee3363c08538db50 Mon Sep 17 00:00:00 2001 From: Amos Wenger Date: Sat, 7 Sep 2024 00:24:32 +0200 Subject: [PATCH] Also use rust flate2 backend on powerpc64le --- crates/uv-production-flate2-backend/Cargo.toml | 4 ++-- crates/uv-production-flate2-backend/src/lib.rs | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/uv-production-flate2-backend/Cargo.toml b/crates/uv-production-flate2-backend/Cargo.toml index 57584c2e709c..d7d593efd8d6 100644 --- a/crates/uv-production-flate2-backend/Cargo.toml +++ b/crates/uv-production-flate2-backend/Cargo.toml @@ -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"] } diff --git a/crates/uv-production-flate2-backend/src/lib.rs b/crates/uv-production-flate2-backend/src/lib.rs index 47630c6d1642..b66ffb59f389 100644 --- a/crates/uv-production-flate2-backend/src/lib.rs +++ b/crates/uv-production-flate2-backend/src/lib.rs @@ -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`