Skip to content

Commit

Permalink
Merge pull request #466 from zonyitoo/patch-1
Browse files Browse the repository at this point in the history
Enable atomic64 only when target supports AtomicU64
  • Loading branch information
tatsuya6502 authored Dec 14, 2024
2 parents 5eb34ab + adf139b commit 64a5202
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/common/concurrent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,8 @@ pub(crate) mod entry_info;
#[cfg(feature = "sync")]
pub(crate) mod housekeeper;

// target_has_atomic is more convenient but yet unstable (Rust 1.55)
// https://github.com/rust-lang/rust/issues/32976
// #[cfg_attr(target_has_atomic = "64", path = "common/time_atomic64.rs")]

#[cfg_attr(
all(feature = "atomic64", feature = "quanta"),
all(feature = "atomic64", feature = "quanta", target_has_atomic = "64"),
path = "concurrent/atomic_time/atomic_time.rs"
)]
#[cfg_attr(
Expand Down

0 comments on commit 64a5202

Please sign in to comment.