-
Notifications
You must be signed in to change notification settings - Fork 995
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
base: main
Are you sure you want to change the base?
macOs various updates. #3578
Conversation
devnexen
commented
Feb 10, 2024
- CI only for macOs arm64.
- Fixing build issues for macOs arm64.
- Adding macos cpu to arch api.
r? @JohnTitor rustbot has assigned @JohnTitor. Use r? to explicitly pick a reviewer |
cba5173
to
e721608
Compare
Cargo.toml
Outdated
"x86_64-apple-darwin", | ||
"x86_64-apple-ios", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is for docs.rs and you don't have to touch.
src/unix/bsd/apple/mod.rs
Outdated
// FIXME: 2024 edition forbids static mut, no easy fix for both nightly/stable neither | ||
//pub static mut mach_task_self_: ::mach_port_t; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could just remove mach related items.
e721608
to
51100ae
Compare
src/unix/bsd/apple/mod.rs
Outdated
pub fn macho_cpu_type_for_arch_name( | ||
archName: *const ::c_char, | ||
tpe: *mut ::cpu_type_t, | ||
subtpe: *mut ::cpu_subtype_t, | ||
) -> bool; | ||
pub fn macho_arch_name_for_cpu_type( | ||
tpe: ::cpu_type_t, | ||
subtpe: ::cpu_subtype_t, | ||
) -> *const ::c_char; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should exist on the mach crate.
51100ae
to
b101560
Compare
This looks great! Could we get it merged? |
libc-test/build.rs
Outdated
@@ -203,6 +203,7 @@ fn test_apple(target: &str) { | |||
"limits.h", | |||
"locale.h", | |||
"malloc/malloc.h", | |||
"mach-o/utils.h", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is now unneeded, right?
b101560
to
36c8345
Compare
That's an unexpected error from the merge queue. |
- CI only for macOs arm64. - Fixing build issues for macOs arm64. - Adding macos cpu to arch api.
f144cb7
to
9058e77
Compare