-
Notifications
You must be signed in to change notification settings - Fork 186
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
MSRV 1.59: Remove libc requirement for x86_64-*-linux-none #461
Conversation
a9719e4
to
c4538e2
Compare
c4538e2
to
14f6df9
Compare
14f6df9
to
6d35e22
Compare
6533252
to
c60c94e
Compare
Prepare for removing the libc dependency from it.
Make progress on reoving the libc dependency from util_unix, so we can remove the libc dependency for x86_64-unknown-linux-none.
c60c94e
to
46a253e
Compare
src/linux_android.rs
Outdated
} | ||
match Word::try_from(ret) { | ||
Ok(written) => { | ||
const _:() = assert!(core::mem::size_of::<Word>() <= core::mem::size_of::<usize>()); |
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.
Depending on whether/how #463 is resolved, we may need to unpoison(dest, written)
here.
0, | ||
) | ||
}; | ||
const _:() = assert!(core::mem::size_of::<libc::c_long>() == core::mem::size_of::<isize>()); |
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.
...and here.
Since the current implementation already doesn't work in MSAN (on Linux), we don't have to block this on MSAN support. |
3ad27bf
to
37386af
Compare
// | ||
// #[cfg(target_abi = "x832")] | ||
// #[allow(non_upper_case_globals)] | ||
// pub const SYS_getrandom: IWord = 318 | __X32_SYSCALL_BIT; |
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.
It isn't clear to me that we actually need to use __X32_SYSCALL_BIT
for x86_64-unknown-linux-gnux32
and other x32 targets. It seems like we could just use the 64-bit version of the syscall instead (i.e. same syscall number). But I am not so sure and it's hard for me to test x32.
…-none. Remove the last libc dependency from `linux_android`, as a step towards supporting x86_64-unknown-linux-none. This requires bumping the MSRV to 1.59.
37386af
to
86c1382
Compare
Closing in favor of #520 |
No description provided.