File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -20,19 +20,19 @@ use anyhow::{anyhow, Result};
20
20
21
21
use super :: { functions:: function_resolver, mmap:: MappedSection } ;
22
22
23
- #[ cfg( target_arch = "wasm32" ) ]
23
+ #[ cfg( not ( any ( target_arch = "x86_64" , target_arch = "aarch64" ) ) ) ]
24
24
pub ( crate ) struct JumpTableEntry ;
25
25
26
- #[ cfg( target_arch = "wasm32" ) ]
26
+ #[ cfg( not ( any ( target_arch = "x86_64" , target_arch = "aarch64" ) ) ) ]
27
27
impl JumpTableEntry {
28
28
fn new ( _addr : * const u8 ) -> Self {
29
- panic ! ( "JumpTableEntry not supported on wasm32 " )
29
+ panic ! ( "JumpTableEntry not supported on this architecture " )
30
30
}
31
31
fn jump_ptr ( & self ) -> * const u8 {
32
- panic ! ( "JumpTableEntry not supported on wasm32 " )
32
+ panic ! ( "JumpTableEntry not supported on this architecture " )
33
33
}
34
34
pub ( crate ) fn from_bytes ( _bytes : & mut [ u8 ] ) -> & mut [ Self ] {
35
- panic ! ( "JumpTableEntry not supported on wasm32 " )
35
+ panic ! ( "JumpTableEntry not supported on this architecture " )
36
36
}
37
37
}
38
38
You can’t perform that action at this time.
0 commit comments