-
-
Save Cogitri/0e4e2328a09f658d9c98c47fbc56ef4e to your computer and use it in GitHub Desktop.
diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/libunwind/libunwind.rs b/src/libunwind/libunwind.rs | |
index 73a259bd4..4bdfcb06e 100644 | |
--- a/src/libunwind/libunwind.rs | |
+++ b/src/libunwind/libunwind.rs | |
@@ -44,10 +44,10 @@ pub const unwinder_private_data_size: usize = 5; | |
#[cfg(target_arch = "x86_64")] | |
pub const unwinder_private_data_size: usize = 6; | |
-#[cfg(all(target_arch = "arm", not(target_os = "ios")))] | |
+#[cfg(all(target_arch.contains("arm"), not(target_os = "ios")))] | |
pub const unwinder_private_data_size: usize = 20; | |
-#[cfg(all(target_arch = "arm", target_os = "ios"))] | |
+#[cfg(all(target_arch.contains("arm"), target_os = "ios"))] | |
pub const unwinder_private_data_size: usize = 5; | |
#[cfg(target_arch = "aarch64")] | |
@@ -93,7 +93,7 @@ extern "C" { | |
} | |
cfg_if! { | |
-if #[cfg(all(any(target_os = "ios", target_os = "netbsd", not(target_arch = "arm"))))] { | |
+if #[cfg(all(any(target_os = "ios", target_os = "netbsd", not(target_arch.contains("arm")))))] { | |
// Not ARM EHABI | |
#[repr(C)] | |
#[derive(Copy, Clone, PartialEq)] | |
@@ -217,7 +217,7 @@ if #[cfg(all(any(target_os = "ios", target_os = "netbsd", not(target_arch = "arm | |
} | |
} | |
-if #[cfg(not(all(target_os = "ios", target_arch = "arm")))] { | |
+if #[cfg(not(all(target_os = "ios", target_arch.contains("arm"))))] { | |
// Not 32-bit iOS | |
extern "C" { | |
#[unwind(allowed)] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment