0 | |
diff --git a/src/tests/mod.rs b/src/tests/mod.rs
|
1 | |
index 42c5486..4ae4fa4 100644
|
2 | |
--- a/src/tests/mod.rs
|
3 | |
+++ b/src/tests/mod.rs
|
4 | |
@@ -38,6 +38,7 @@ test_atomic_int_pub!(u64);
|
5 | |
),
|
6 | |
cfg(not(qemu))
|
|
0 |
--- rust-portable-atomic-0.3.15.orig/src/tests/mod.rs
|
|
1 |
+++ rust-portable-atomic-0.3.15/src/tests/mod.rs
|
|
2 |
@@ -27,3 +27,5 @@
|
|
3 |
test_atomic_int_pub!(u32);
|
|
4 |
+#[cfg(any(fallback,target_has_atomic = "64"))]
|
|
5 |
test_atomic_int_pub!(i64);
|
|
6 |
+#[cfg(any(fallback,target_has_atomic = "64"))]
|
|
7 |
test_atomic_int_pub!(u64);
|
|
8 |
@@ -40,2 +42,3 @@
|
7 | 9 |
)]
|
8 | 10 |
+#[cfg(feature = "fallback")]
|
9 | 11 |
test_atomic_int_pub!(i128);
|
10 | |
#[cfg_attr(
|
11 | |
all(
|
12 | |
@@ -49,6 +50,7 @@ test_atomic_int_pub!(i128);
|
13 | |
),
|
14 | |
cfg(not(qemu))
|
|
12 |
@@ -51,2 +54,3 @@
|
15 | 13 |
)]
|
16 | 14 |
+#[cfg(feature = "fallback")]
|
17 | 15 |
test_atomic_int_pub!(u128);
|
18 | |
#[cfg(qemu)]
|
19 | |
#[cfg(target_arch = "powerpc64")]
|
|
16 |
@@ -69,3 +73,3 @@
|
|
17 |
test_atomic_float_pub!(f32);
|
|
18 |
-#[cfg(feature = "float")]
|
|
19 |
+#[cfg(all(feature = "float",any(fallback,target_has_atomic = "64")))]
|
|
20 |
test_atomic_float_pub!(f64);
|
|
21 |
@@ -84,3 +88,5 @@
|
|
22 |
fn _atomic_u32_ffi_safety(_: AtomicU32);
|
|
23 |
+ #[cfg(any(fallback,target_has_atomic = "64"))]
|
|
24 |
fn _atomic_i64_ffi_safety(_: AtomicI64);
|
|
25 |
+ #[cfg(any(fallback,target_has_atomic = "64"))]
|
|
26 |
fn _atomic_u64_ffi_safety(_: AtomicU64);
|
|
27 |
@@ -93,3 +99,3 @@
|
|
28 |
fn _atomic_f32_ffi_safety(_: AtomicF32);
|
|
29 |
- #[cfg(feature = "float")]
|
|
30 |
+ #[cfg(all(feature = "float",any(fallback,target_has_atomic = "64")))]
|
|
31 |
fn _atomic_f64_ffi_safety(_: AtomicF64);
|
|
32 |
only in patch2:
|
|
33 |
--- rust-portable-atomic-0.3.15.orig/src/tests/serde.rs
|
|
34 |
+++ rust-portable-atomic-0.3.15/src/tests/serde.rs
|
|
35 |
@@ -40,3 +40,5 @@
|
|
36 |
t!(AtomicU32, u32, U32);
|
|
37 |
+ #[cfg(any(fallback,target_has_atomic = "64"))]
|
|
38 |
t!(AtomicI64, i64, I64);
|
|
39 |
+ #[cfg(any(fallback,target_has_atomic = "64"))]
|
|
40 |
t!(AtomicU64, u64, U64);
|
|
41 |
@@ -47,3 +49,3 @@
|
|
42 |
t!(AtomicF32, f32, F32);
|
|
43 |
- #[cfg(feature = "float")]
|
|
44 |
+ #[cfg(all(feature = "float",any(fallback,target_has_atomic = "64")))]
|
|
45 |
t!(AtomicF64, f64, F64);
|