Fix build for armv5te target
This commit is contained in:
parent
172f60fb9a
commit
2d0d1d2990
2 changed files with 11 additions and 3 deletions
|
@ -23,7 +23,7 @@ sha1 = {version = "0.10.1", optional = true }
|
|||
time = { version = "0.3.7", features = ["formatting", "macros" ], optional = true }
|
||||
zstd = { version = "0.10.0", optional = true }
|
||||
|
||||
[target.'cfg(any(target_arch = "mips", target_arch = "powerpc"))'.dependencies]
|
||||
[target.'cfg(any(all(target_arch = "arm", target_pointer_width = "32"), target_arch = "mips", target_arch = "powerpc"))'.dependencies]
|
||||
crossbeam-utils = "0.8.8"
|
||||
|
||||
[dev-dependencies]
|
||||
|
|
12
src/types.rs
12
src/types.rs
|
@ -2,10 +2,18 @@
|
|||
#[cfg(doc)]
|
||||
use {crate::read::ZipFile, crate::write::FileOptions};
|
||||
|
||||
#[cfg(not(any(target_arch = "mips", target_arch = "powerpc")))]
|
||||
#[cfg(not(any(
|
||||
all(target_arch = "arm", target_pointer_width = "32"),
|
||||
target_arch = "mips",
|
||||
target_arch = "powerpc"
|
||||
)))]
|
||||
use std::sync::atomic;
|
||||
|
||||
#[cfg(any(target_arch = "mips", target_arch = "powerpc"))]
|
||||
#[cfg(any(
|
||||
all(target_arch = "arm", target_pointer_width = "32"),
|
||||
target_arch = "mips",
|
||||
target_arch = "powerpc"
|
||||
))]
|
||||
mod atomic {
|
||||
use crossbeam_utils::sync::ShardedLock;
|
||||
pub use std::sync::atomic::Ordering;
|
||||
|
|
Loading…
Add table
Reference in a new issue