libstd: Fix a typo. s/target_os/target_arch/
This commit is contained in:
parent
352c5e7eb7
commit
15b962a9b9
@ -120,7 +120,7 @@ extern "C" {
|
|||||||
// of the macro. This is all copy/pasted directly from the header file with the
|
// of the macro. This is all copy/pasted directly from the header file with the
|
||||||
// definition of _Unwind_GetIP.
|
// definition of _Unwind_GetIP.
|
||||||
#[cfg(target_os = "android")]
|
#[cfg(target_os = "android")]
|
||||||
#[cfg(target_os = "linux", target_os = "arm")]
|
#[cfg(target_os = "linux", target_arch = "arm")]
|
||||||
pub unsafe fn _Unwind_GetIP(ctx: *_Unwind_Context) -> libc::uintptr_t {
|
pub unsafe fn _Unwind_GetIP(ctx: *_Unwind_Context) -> libc::uintptr_t {
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
enum _Unwind_VRS_Result {
|
enum _Unwind_VRS_Result {
|
||||||
@ -162,9 +162,9 @@ pub unsafe fn _Unwind_GetIP(ctx: *_Unwind_Context) -> libc::uintptr_t {
|
|||||||
(val & !1) as libc::uintptr_t
|
(val & !1) as libc::uintptr_t
|
||||||
}
|
}
|
||||||
|
|
||||||
// This function also doesn't exist on android, so make it a no-op
|
// This function also doesn't exist on android or arm/linux, so make it a no-op
|
||||||
#[cfg(target_os = "android")]
|
#[cfg(target_os = "android")]
|
||||||
#[cfg(target_os = "linux", target_os = "arm")]
|
#[cfg(target_os = "linux", target_arch = "arm")]
|
||||||
pub unsafe fn _Unwind_FindEnclosingFunction(pc: *libc::c_void) -> *libc::c_void{
|
pub unsafe fn _Unwind_FindEnclosingFunction(pc: *libc::c_void) -> *libc::c_void {
|
||||||
pc
|
pc
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user