]> git.lizzy.rs Git - rust.git/commitdiff
libstd: Fix a typo. s/target_os/target_arch/
authorLuqman Aden <laden@csclub.uwaterloo.ca>
Sat, 15 Mar 2014 22:45:26 +0000 (18:45 -0400)
committerLuqman Aden <laden@csclub.uwaterloo.ca>
Sat, 15 Mar 2014 22:45:26 +0000 (18:45 -0400)
src/libstd/rt/libunwind.rs

index ac34277dcbdc16e35fe57e0b9dd3c7d78879bef9..2528a22be9a003e5a5a66c75b5ec688cef4ef8c5 100644 (file)
@@ -120,7 +120,7 @@ pub fn _Unwind_Backtrace(trace: _Unwind_Trace_Fn,
 // of the macro. This is all copy/pasted directly from the header file with the
 // definition of _Unwind_GetIP.
 #[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 {
     #[repr(C)]
     enum _Unwind_VRS_Result {
@@ -162,9 +162,9 @@ fn _Unwind_VRS_Get(ctx: *_Unwind_Context,
     (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 = "linux", target_os = "arm")]
-pub unsafe fn _Unwind_FindEnclosingFunction(pc: *libc::c_void) -> *libc::c_void{
+#[cfg(target_os = "linux", target_arch = "arm")]
+pub unsafe fn _Unwind_FindEnclosingFunction(pc: *libc::c_void) -> *libc::c_void {
     pc
 }