summaryrefslogtreecommitdiff
path: root/upstream-layers/meta-openembedded/meta-python/recipes-devtools/python/python3-orjson
diff options
context:
space:
mode:
Diffstat (limited to 'upstream-layers/meta-openembedded/meta-python/recipes-devtools/python/python3-orjson')
-rw-r--r--upstream-layers/meta-openembedded/meta-python/recipes-devtools/python/python3-orjson/0001-Guard-avx512-module-with-x86-target-cfg.patch5
-rw-r--r--upstream-layers/meta-openembedded/meta-python/recipes-devtools/python/python3-orjson/0002-Guard-x86-feature-detection-macro-in-pystrref-object.patch11
2 files changed, 5 insertions, 11 deletions
diff --git a/upstream-layers/meta-openembedded/meta-python/recipes-devtools/python/python3-orjson/0001-Guard-avx512-module-with-x86-target-cfg.patch b/upstream-layers/meta-openembedded/meta-python/recipes-devtools/python/python3-orjson/0001-Guard-avx512-module-with-x86-target-cfg.patch
index 604030e062..0dbb16322a 100644
--- a/upstream-layers/meta-openembedded/meta-python/recipes-devtools/python/python3-orjson/0001-Guard-avx512-module-with-x86-target-cfg.patch
+++ b/upstream-layers/meta-openembedded/meta-python/recipes-devtools/python/python3-orjson/0001-Guard-avx512-module-with-x86-target-cfg.patch
@@ -1,4 +1,4 @@
-From c5c46664a914d3a7f048c51c3b9c2ab13e21ed1b Mon Sep 17 00:00:00 2001
+From a2acfc8ab636148cc9a2ba81ee03698703154ff0 Mon Sep 17 00:00:00 2001
From: Tim Orling <tim.orling@konsulko.com>
Date: Thu, 29 Jan 2026 09:59:55 -0800
Subject: [PATCH] Guard avx512 module with x86 target cfg
@@ -32,6 +32,3 @@ index e4c7697..46450ac 100644
#[target_feature(enable = "avx512f,avx512bw,avx512vl,bmi2")]
pub(crate) unsafe fn create_str_impl_avx512vl(buf: &str) -> *mut crate::ffi::PyObject {
unsafe {
---
-2.39.5
-
diff --git a/upstream-layers/meta-openembedded/meta-python/recipes-devtools/python/python3-orjson/0002-Guard-x86-feature-detection-macro-in-pystrref-object.patch b/upstream-layers/meta-openembedded/meta-python/recipes-devtools/python/python3-orjson/0002-Guard-x86-feature-detection-macro-in-pystrref-object.patch
index 59105e723c..0a699addc7 100644
--- a/upstream-layers/meta-openembedded/meta-python/recipes-devtools/python/python3-orjson/0002-Guard-x86-feature-detection-macro-in-pystrref-object.patch
+++ b/upstream-layers/meta-openembedded/meta-python/recipes-devtools/python/python3-orjson/0002-Guard-x86-feature-detection-macro-in-pystrref-object.patch
@@ -1,7 +1,7 @@
-From 7ef16220caaa82f7a90047c8c9b5ff2eeb15b9ce Mon Sep 17 00:00:00 2001
+From 00ea35a6fa570e449f3023322f112b3e1f700fea Mon Sep 17 00:00:00 2001
From: Tim Orling <tim.orling@konsulko.com>
Date: Thu, 29 Jan 2026 10:22:31 -0800
-Subject: [PATCH 2/2] Guard x86 feature detection macro in pystrref/object.rs
+Subject: [PATCH] Guard x86 feature detection macro in pystrref/object.rs
The std::is_x86_feature_detected! macro only works on x86/x86_64
targets. This patch wraps the feature detection and AVX-512 code path
@@ -18,10 +18,10 @@ Signed-off-by: Tim Orling <tim.orling@konsulko.com>
1 file changed, 1 insertion(+)
diff --git a/src/ffi/pystrref/object.rs b/src/ffi/pystrref/object.rs
-index 9ef12eb..7c2c046 100644
+index 69069fa..ba0bbe1 100644
--- a/src/ffi/pystrref/object.rs
+++ b/src/ffi/pystrref/object.rs
-@@ -29,6 +29,7 @@ static mut STR_CREATE_FN: StrDeserializer = super::scalar::str_impl_kind_scalar;
+@@ -32,6 +32,7 @@ static mut STR_CREATE_FN: StrDeserializer = super::scalar::str_impl_kind_scalar;
pub fn set_str_create_fn() {
unsafe {
@@ -29,6 +29,3 @@ index 9ef12eb..7c2c046 100644
#[cfg(all(CPython, feature = "avx512"))]
if std::is_x86_feature_detected!("avx512vl") {
STR_CREATE_FN = super::avx512::create_str_impl_avx512vl;
---
-2.39.5
-