Skip to content

Commit 9ad3448

Browse files
authored
add miri support by forcing the portable backend (#864)
1 parent 552f6ea commit 9ad3448

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cmov/src/lib.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@
66
)]
77
#![warn(missing_docs, rust_2018_idioms, unused_qualifications)]
88

9+
#[cfg(not(miri))]
910
#[cfg(target_arch = "aarch64")]
1011
mod aarch64;
11-
#[cfg(not(any(target_arch = "aarch64", target_arch = "x86", target_arch = "x86_64")))]
12+
#[cfg(any(
13+
not(any(target_arch = "aarch64", target_arch = "x86", target_arch = "x86_64")),
14+
miri
15+
))]
1216
mod portable;
17+
#[cfg(not(miri))]
1318
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
1419
mod x86;
1520

0 commit comments

Comments
 (0)