-
Notifications
You must be signed in to change notification settings - Fork 679
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 apple tvos support #2169
Add apple tvos support #2169
Conversation
f883991
to
e734ffc
Compare
tvOS build is failing because Will drop CI job commit. |
e734ffc
to
4efe691
Compare
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.
Instead of adding more code to support tvos, how about we remove code? By replacing every instance of:
#[cfg(any(target_os = "macos", target_os = "ios"))]
with
#[cfg(target_vendor = "apple")]
.
I think that should work.
src/sys/event.rs
Outdated
#[cfg(any(target_os = "macos", target_os = "ios", target_os = "freebsd"))] | ||
#[cfg(any( | ||
target_os = "macos", | ||
target_os = "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.
Should there be a tvos here?
Will Another thing I found while searching is that the Rust team will deprecate the |
That is highly annoying. And it looks like the proposed |
There is a crate
Then we can use And it seems to be compatiable with the cfg attributes from // For Apple targets and Linux
#[cfg(any(apple_targets, target_os = "linux")]
fn foo() { } |
Awesome @SteveLauC that looks perfect |
Friendly ping @lcruz99, would you like to do it in this PR:
Please note that this would also make nix support If I do this, then this PR would be replaced by my PR, and I don't want to ruin your first contribution to nix :) |
@SteveLauC will push those changes asap, thanks for the heads up :) |
17f5c24
to
a426093
Compare
ad35f0a
to
bbcee88
Compare
@SteveLauC @asomers FYI Just pushed requested changes. |
Thanks! And congratulations on your first contribution to nix! |
What does this PR do
This PR allows using nix lib to target tier 3 *-apple builds:
Checklist:
CONTRIBUTING.md