From 2946f5d40cd0104a24b270dcf7cd4b28a2ab1dff Mon Sep 17 00:00:00 2001 From: Greg Green Date: Wed, 27 Dec 2023 18:06:35 +0700 Subject: [PATCH] Added xtensa architecture to cfg for atomic_shim xtensa architecture doesn't have 64bit atomics, so adjusted config to bring the shim versions of those types --- src/atomic_shim.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/atomic_shim.rs b/src/atomic_shim.rs index f134008b7..45f697d0b 100644 --- a/src/atomic_shim.rs +++ b/src/atomic_shim.rs @@ -3,10 +3,16 @@ #[cfg(not(any( target_arch = "mips", target_arch = "powerpc", + target_arch = "xtensa", feature = "mutex" )))] pub use std::sync::atomic::{AtomicI64, AtomicU64}; -#[cfg(any(target_arch = "mips", target_arch = "powerpc", feature = "mutex"))] +#[cfg(any( + target_arch = "mips", + target_arch = "powerpc", + target_arch = "xtensa", + feature = "mutex" +))] mod shim { use parking_lot::{const_rwlock, RwLock}; use std::sync::atomic::Ordering;