timer: test arm on targets with target_has_atomic less than 64 (#1634)

This commit is contained in:
Taiki Endo 2019-10-08 01:19:44 +09:00 committed by Carl Lerche
parent 2b4b0619d7
commit 42a5cb1508
2 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,7 @@ jobs:
target: mips-unknown-linux-gnu target: mips-unknown-linux-gnu
arm: arm:
vmImage: ubuntu-16.04 vmImage: ubuntu-16.04
target: arm-unknown-linux-gnueabi target: arm-linux-androideabi
pool: pool:
vmImage: $(vmImage) vmImage: $(vmImage)
steps: steps:

View File

@ -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. // `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 // Once `cfg_target_has_atomic` feature is stable, we can replace it with
// `#[cfg(target_has_atomic = "64")]`. // `#[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")))] #[cfg(not(any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc")))]
mod imp { mod imp {
pub(crate) use std::sync::atomic::AtomicU64; pub(crate) use std::sync::atomic::AtomicU64;