File tree 2 files changed +25
-0
lines changed
2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 59
59
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg"
60
60
) ]
61
61
62
+ #[ cfg( not( miri) ) ]
62
63
#[ cfg( all( target_arch = "aarch64" ) ) ]
63
64
#[ doc( hidden) ]
64
65
pub mod aarch64;
65
66
67
+ #[ cfg( not( miri) ) ]
66
68
#[ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ]
67
69
mod x86;
68
70
71
+ #[ cfg( miri) ]
72
+ mod miri;
73
+
69
74
#[ cfg( not( any( target_arch = "aarch64" , target_arch = "x86" , target_arch = "x86_64" ) ) ) ]
70
75
compile_error ! ( "This crate works only on `aarch64`, `x86`, and `x86-64` targets." ) ;
71
76
Original file line number Diff line number Diff line change
1
+ //! Minimal miri support.
2
+ //!
3
+ //! Miri is an interpreter, and though it tries to emulate the target CPU
4
+ //! it does not support any target features.
5
+
6
+ #[ macro_export]
7
+ #[ doc( hidden) ]
8
+ macro_rules! __unless_target_features {
9
+ ( $( $tf: tt) ,+ => $body: expr ) => {
10
+ false
11
+ } ;
12
+ }
13
+
14
+ #[ macro_export]
15
+ #[ doc( hidden) ]
16
+ macro_rules! __detect_target_features {
17
+ ( $( $tf: tt) ,+) => {
18
+ false
19
+ } ;
20
+ }
You can’t perform that action at this time.
0 commit comments