File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ impl Frame {
6060#[ repr( C , align( 16 ) ) ] // required by `CONTEXT`, is a FIXME in winapi right now
6161struct MyContext ( CONTEXT ) ;
6262
63- #[ cfg( target_arch = "x86_64" ) ]
63+ #[ cfg( any ( target_arch = "x86_64" , target_arch = "arm64ec" ) ) ]
6464impl MyContext {
6565 #[ inline( always) ]
6666 fn ip ( & self ) -> DWORD64 {
@@ -122,7 +122,7 @@ impl MyContext {
122122 }
123123}
124124
125- #[ cfg( any( target_arch = "x86_64" , target_arch = "aarch64" ) ) ]
125+ #[ cfg( any( target_arch = "x86_64" , target_arch = "aarch64" , target_arch = "arm64ec" ) ) ]
126126#[ inline( always) ]
127127pub unsafe fn trace ( cb : & mut dyn FnMut ( & super :: Frame ) -> bool ) {
128128 use core:: ptr;
Original file line number Diff line number Diff line change @@ -447,7 +447,7 @@ ffi! {
447447 }
448448}
449449
450- #[ cfg( any( target_arch = "x86_64" , target_arch = "aarch64" ) ) ]
450+ #[ cfg( any( target_arch = "x86_64" , target_arch = "aarch64" , target_arch = "arm64ec" ) ) ]
451451ffi ! {
452452 #[ link( name = "kernel32" ) ]
453453 extern "system" {
@@ -594,7 +594,7 @@ ffi! {
594594 }
595595}
596596
597- #[ cfg( target_arch = "x86_64" ) ]
597+ #[ cfg( any ( target_arch = "x86_64" , target_arch = "arm64ec" ) ) ]
598598ffi ! {
599599 #[ repr( C , align( 8 ) ) ]
600600 pub struct CONTEXT {
@@ -662,7 +662,7 @@ ffi! {
662662}
663663
664664#[ repr( C ) ]
665- #[ cfg( target_arch = "x86_64" ) ]
665+ #[ cfg( any ( target_arch = "x86_64" , target_arch = "arm64ec" ) ) ]
666666#[ derive( Copy , Clone ) ]
667667pub struct FLOATING_SAVE_AREA {
668668 _Dummy : [ u8 ; 512 ] ,
You can’t perform that action at this time.
0 commit comments