Provide 32 bit atomic impls for emscripten

This commit is contained in:
David Tolnay
2019-07-17 09:11:35 -07:00
parent 3158bf9093
commit 7b0e06c825
6 changed files with 29 additions and 30 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ use std::time::{Duration, UNIX_EPOCH};
#[cfg(unix)]
use std::str;
#[cfg(not(target_os = "emscripten"))]
#[cfg(target_arch = "x86_64")]
use std::sync::atomic::{AtomicI64, AtomicU64};
use fnv::FnvHasher;
@@ -504,7 +504,7 @@ declare_tests! {
}
}
#[cfg(not(target_os = "emscripten"))]
#[cfg(target_arch = "x86_64")]
declare_tests! {
test_atomic64 {
AtomicI64::new(-4295032832i64) => &[Token::I64(-4295032832i64)],