Skip to content
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 watchOS and tvOS targets #1405

Closed
chrisballinger opened this issue Apr 28, 2018 · 4 comments
Closed

Add support for watchOS and tvOS targets #1405

chrisballinger opened this issue Apr 28, 2018 · 4 comments

Comments

@chrisballinger
Copy link

chrisballinger commented Apr 28, 2018

Not sure if this is the right place to track this, but I was experimenting with creating a template for packaging Rust libraries for macOS/iOS/watchOS/tvOS, and noticed that rustup targets for watchOS and tvOS were missing. I'm guessing there isn't much demand for these targets, but for the sake of completeness perhaps they could be added. They both require bitcode support, but it looks like that's finally resolved in the recent nightlies.

  • armv7k-apple-watchos
  • i386-apple-watchos
  • aarch64-apple-tvos
  • x86_64-apple-tvos

Could someone point me in the right direction for what would need to be done to add these targets and contribute them upstream?

Thanks!

@Diggsey
Copy link
Contributor

Diggsey commented May 27, 2018

It looks like these targets are not currently built upstream:
rust-lang/rust#48862

@Diggsey Diggsey closed this as completed May 27, 2018
@simlay
Copy link

simlay commented Mar 22, 2020

I added tvOS upstream. Adding watchOS upstream involves knowing some attributes about the watchOS architecture. If anyone knows what to put in these fields it would require the new target parameters, dealing with the SDKROOT stuff in the apple_sdk_base file, and then adding a field to the AppleOS enum.

@chrisballinger
Copy link
Author

@simlay Awesome! I know that watchOS still supports 32-bit for Series 1-3, and 64-bit for Series 4-5, and that the 64-bit arch uses 32-bit pointers.

@HindrikStegenga
Copy link

@simlay Does that mean I can somehow get Rust code to compile on tvOS with std support? And if so, could you tell me how or where I can find on how to proceed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants