Skip to content

Commit

Permalink
Bump unwinder private data size for AArch64 Windows
Browse files Browse the repository at this point in the history
This fixes unwinding on `aarch64-*-windows-gnu*`.
  • Loading branch information
mati865 committed Nov 12, 2022
1 parent 68c5939 commit 2a902a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion library/unwind/src/libunwind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,12 @@ pub const unwinder_private_data_size: usize = 20;
#[cfg(all(target_arch = "arm", any(target_os = "ios", target_os = "watchos")))]
pub const unwinder_private_data_size: usize = 5;

#[cfg(all(target_arch = "aarch64", target_pointer_width = "64"))]
#[cfg(all(target_arch = "aarch64", target_pointer_width = "64", not(target_os = "windows")))]
pub const unwinder_private_data_size: usize = 2;

#[cfg(all(target_arch = "aarch64", target_pointer_width = "64", target_os = "windows"))]
pub const unwinder_private_data_size: usize = 6;

#[cfg(all(target_arch = "aarch64", target_pointer_width = "32"))]
pub const unwinder_private_data_size: usize = 5;

Expand Down

0 comments on commit 2a902a8

Please sign in to comment.