Skip to content

Commit de78d7f

Browse files
committed
auto merge of #12922 : luqmana/rust/fix-arm, r=alexcrichton
2 parents 4444f49 + 15b962a commit de78d7f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libstd/rt/libunwind.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ extern "C" {
120120
// of the macro. This is all copy/pasted directly from the header file with the
121121
// definition of _Unwind_GetIP.
122122
#[cfg(target_os = "android")]
123-
#[cfg(target_os = "linux", target_os = "arm")]
123+
#[cfg(target_os = "linux", target_arch = "arm")]
124124
pub unsafe fn _Unwind_GetIP(ctx: *_Unwind_Context) -> libc::uintptr_t {
125125
#[repr(C)]
126126
enum _Unwind_VRS_Result {
@@ -162,9 +162,9 @@ pub unsafe fn _Unwind_GetIP(ctx: *_Unwind_Context) -> libc::uintptr_t {
162162
(val & !1) as libc::uintptr_t
163163
}
164164

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
166166
#[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 {
169169
pc
170170
}

0 commit comments

Comments
 (0)