mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-25 12:00:35 +00:00
timer: test arm on targets with target_has_atomic less than 64 (#1634)
This commit is contained in:
parent
2b4b0619d7
commit
42a5cb1508
@ -17,7 +17,7 @@ jobs:
|
||||
target: mips-unknown-linux-gnu
|
||||
arm:
|
||||
vmImage: ubuntu-16.04
|
||||
target: arm-unknown-linux-gnueabi
|
||||
target: arm-linux-androideabi
|
||||
pool:
|
||||
vmImage: $(vmImage)
|
||||
steps:
|
||||
|
@ -7,6 +7,7 @@ pub(crate) use self::imp::AtomicU64;
|
||||
// `AtomicU64` can only be used on targets with `target_has_atomic` is 64 or greater.
|
||||
// Once `cfg_target_has_atomic` feature is stable, we can replace it with
|
||||
// `#[cfg(target_has_atomic = "64")]`.
|
||||
// Refs: https://github.com/rust-lang/rust/tree/master/src/librustc_target
|
||||
#[cfg(not(any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc")))]
|
||||
mod imp {
|
||||
pub(crate) use std::sync::atomic::AtomicU64;
|
||||
|
Loading…
x
Reference in New Issue
Block a user