Skip to content

Commit

Permalink
Fix build on riscv64
Browse files Browse the repository at this point in the history
  • Loading branch information
ImBearChild committed Jul 21, 2024
1 parent ab4aaf0 commit 83fe04d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/atomic_integer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ impl_atomic_integer_ops!(std::sync::atomic::AtomicI32, i32);
target_arch = "x86_64",
target_arch = "aarch64",
target_arch = "powerpc64",
target_arch = "s390x"
target_arch = "s390x",
target_arch = "riscv64"
))]
impl_atomic_integer_ops!(std::sync::atomic::AtomicI64, i64);

Expand All @@ -71,7 +72,8 @@ impl_atomic_integer_ops!(std::sync::atomic::AtomicU32, u32);
target_arch = "x86_64",
target_arch = "aarch64",
target_arch = "powerpc64",
target_arch = "s390x"
target_arch = "s390x",
target_arch = "riscv64"
))]
impl_atomic_integer_ops!(std::sync::atomic::AtomicU64, u64);

Expand Down
6 changes: 4 additions & 2 deletions src/bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ impl_atomic_access!(i32, std::sync::atomic::AtomicI32);
target_arch = "x86_64",
target_arch = "aarch64",
target_arch = "powerpc64",
target_arch = "s390x"
target_arch = "s390x",
target_arch = "riscv64"
))]
impl_atomic_access!(i64, std::sync::atomic::AtomicI64);

Expand All @@ -202,7 +203,8 @@ impl_atomic_access!(u32, std::sync::atomic::AtomicU32);
target_arch = "x86_64",
target_arch = "aarch64",
target_arch = "powerpc64",
target_arch = "s390x"
target_arch = "s390x",
target_arch = "riscv64"
))]
impl_atomic_access!(u64, std::sync::atomic::AtomicU64);

Expand Down

0 comments on commit 83fe04d

Please sign in to comment.