From 42a5cb150868e98aa4b6bbf65a5a04faabbc8755 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Tue, 8 Oct 2019 01:19:44 +0900 Subject: [PATCH] timer: test arm on targets with target_has_atomic less than 64 (#1634) --- ci/azure-cross-compile.yml | 2 +- tokio-timer/src/atomic.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/azure-cross-compile.yml b/ci/azure-cross-compile.yml index cd53474a5..74acaee28 100644 --- a/ci/azure-cross-compile.yml +++ b/ci/azure-cross-compile.yml @@ -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: diff --git a/tokio-timer/src/atomic.rs b/tokio-timer/src/atomic.rs index e051c8560..206954fcc 100644 --- a/tokio-timer/src/atomic.rs +++ b/tokio-timer/src/atomic.rs @@ -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;