-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add support for tvOS #2958
Add support for tvOS #2958
Conversation
r? @Amanieu (rust-highfive has picked a reviewer for you, use r? to override) |
Thanks! @bors r+ |
Add support for tvOS This is essentially identical to the iOS support, as the OS is... essentially identical to iOS.
💥 Test timed out |
@bors retry |
☀️ Test successful - checks-actions, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13, checks-cirrus-freebsd-14 |
Mind cutting a release with this in it at some point soon? I'd like to add tvOS support to libstd. |
Sure, I'll handle it after work. |
Thanks! No rush! |
Support Apple tvOS in libstd This target has existed in the compiler for a while, was `no_std`-only previously (even requiring `#![feature(restricted_std)]`). Apple tvOS is essentially the same as iOS, down to using the same version numbering, so there's no reason for this to be a `no_std`-only target the way it is currently. Not yet tested much (I have an Apple TV, but haven't tested that this can deploy and run programs on it, nor the simulator). Uses the implementation strategy as the watchOS support in rust-lang#98101 and etc. That is, no `std::os::` interfaces aside from those in `std::os::unix`. Includes an update to libc in order to pull in rust-lang/libc#2958.
Fix apple tvos support This PR adds one missed conditional to support apple tvOS target, it complements #2958.
This is essentially identical to the iOS support, as the OS is... essentially identical to iOS.