File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ extern "C" {
120
120
// of the macro. This is all copy/pasted directly from the header file with the
121
121
// definition of _Unwind_GetIP.
122
122
#[ cfg( target_os = "android" ) ]
123
- #[ cfg( target_os = "linux" , target_os = "arm" ) ]
123
+ #[ cfg( target_os = "linux" , target_arch = "arm" ) ]
124
124
pub unsafe fn _Unwind_GetIP ( ctx : * _Unwind_Context ) -> libc:: uintptr_t {
125
125
#[ repr( C ) ]
126
126
enum _Unwind_VRS_Result {
@@ -162,9 +162,9 @@ pub unsafe fn _Unwind_GetIP(ctx: *_Unwind_Context) -> libc::uintptr_t {
162
162
( val & !1 ) as libc:: uintptr_t
163
163
}
164
164
165
- // This function also doesn't exist on android, so make it a no-op
165
+ // This function also doesn't exist on android or arm/linux , so make it a no-op
166
166
#[ cfg( target_os = "android" ) ]
167
- #[ cfg( target_os = "linux" , target_os = "arm" ) ]
168
- pub unsafe fn _Unwind_FindEnclosingFunction ( pc : * libc:: c_void ) -> * libc:: c_void {
167
+ #[ cfg( target_os = "linux" , target_arch = "arm" ) ]
168
+ pub unsafe fn _Unwind_FindEnclosingFunction ( pc : * libc:: c_void ) -> * libc:: c_void {
169
169
pc
170
170
}
You can’t perform that action at this time.
0 commit comments