-
Notifications
You must be signed in to change notification settings - Fork 1.1k
macOs various updates. #3578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOs various updates. #3578
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -294,6 +294,8 @@ fn test_apple(target: &str) { | |
"tcp_connection_info" => true, | ||
// FIXME: The size is changed in recent macOSes. | ||
"malloc_introspection_t" => true, | ||
// sonoma changes the padding `rmx_filler` field. | ||
"rt_metrics" => true, | ||
|
||
_ => false, | ||
} | ||
|
@@ -2215,6 +2217,12 @@ fn test_freebsd(target: &str) { | |
// should've been used anywhere anyway. | ||
"TDF_UNUSED23" => true, | ||
|
||
// Removed in FreeBSD 15 | ||
"TDF_CANSWAP" | "TDF_SWAPINREQ" => true, | ||
|
||
// Unaccessible in FreeBSD 15 | ||
"TDI_SWAPPED" | "P_SWAPPINGOUT" | "P_SWAPPINGIN" => true, | ||
|
||
Comment on lines
+2220
to
+2225
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you mind moving the freebsd-specific changes to a separate commit so cherry picking is a bit easier? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you mean another PR ? usually we merge squashed commits ultimately. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, just separate commits. Usually only messy history needs to get squashed (e.g. squash the docs fix), and this specifically won't since it will get merged with other CI fixes. No worries if it's too much trouble. (I'm just asking because I don't know what exactly needs to get cherry picked to the 0.2 branch to get that CI working) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should be ok in theory, l ll get to it soon-ish |
||
// Removed in FreeBSD 14 (git a6b55ee6be1) | ||
"IFF_KNOWSEPOCH" => true, | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ pub type uint32_t = u32; | |
pub type uint64_t = u64; | ||
|
||
cfg_if! { | ||
if #[cfg(all(target_arch = "aarch64", not(target_os = "windows")))] { | ||
if #[cfg(all(target_arch = "aarch64", not(any(target_os = "windows", target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "watchos"))))] { | ||
// This introduces partial support for FFI with __int128 and | ||
// equivalent types on platforms where Rust's definition is validated | ||
// to match the standard C ABI of that platform. | ||
|
@@ -92,5 +92,10 @@ cfg_if! { | |
|
||
// static_assert_eq!(core::mem::size_of::<__uint128_t>(), _SIZE_128); | ||
// static_assert_eq!(core::mem::align_of::<__uint128_t>(), _ALIGN_128); | ||
} else if #[cfg(all(target_arch = "aarch64", any(target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "watchos")))] { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Prefer using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think I ve tried already in the past and now I try again I get this error: `cfg(target_vendor)` is experimental and subject to change (see issue #29718)
--> ../src/fixed_width_ints.rs:95:50
|
95 | } else if #[cfg(all(target_arch = "aarch64", target_vendor = "apple"))] {
| ^^^^^^^^^^^^^^^^^^^^^^^
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Which job does this fail on? It looks like this should have been stable since 1.33 rust-lang/rust#57465 |
||
/// /// C `__int128_t` | ||
pub type __int128_t = i128; | ||
/// /// C `__uint128_t` | ||
pub type __uint128_t = u128; | ||
} | ||
} |
Uh oh!
There was an error while loading. Please reload this page.