python313Packages.polars: fix build with Rust 1.88.0

This commit is contained in:
K900
2025-07-06 14:14:01 +03:00
parent 0e49a8d5a6
commit 55b0d38442
2 changed files with 19 additions and 0 deletions
@@ -0,0 +1,15 @@
diff --git a/crates/polars-compute/src/lib.rs b/crates/polars-compute/src/lib.rs
index ebe1ef753..6e1eee897 100644
--- a/crates/polars-compute/src/lib.rs
+++ b/crates/polars-compute/src/lib.rs
@@ -5,6 +5,10 @@
all(feature = "simd", target_arch = "x86_64"),
feature(stdarch_x86_avx512)
)]
+#![cfg_attr(
+ all(feature = "simd", target_arch = "x86_64"),
+ feature(avx512_target_feature)
+)]
use arrow::types::NativeType;
@@ -59,6 +59,10 @@ buildPythonPackage rec {
hash = "sha256-OZ7guV/uxa3jGesAh+ubrFjQSNVp5ImfXfPAQxagTj0=";
};
patches = [
./avx512.patch
];
# Do not type-check assertions because some of them use unstable features (`is_none_or`)
postPatch = ''
while IFS= read -r -d "" path ; do