Add Nintendo Switch as tier 3 target by jam1garner · Pull Request #88991 · rust-lang/rust (original) (raw)

Yep, me and @jam1garner.

We spent a good amount of time bikeshedding this, but aarch64-nintendo-switch is consistent with armv6k-nintendo-3ds and mipsel-sony-psp. One consideration was targets built on top of C libraries, but there's some precedent here for alternate versions of targets in the form of aarch64-apple-ios and aarch64-apple-ios-sim.

The code in this PR definitely shouldn't pose any issue. Before making PRs for libstd, we plan to consult the core team and foundation (as discussed on Zulip), but none of the explicitly mentioned issues apply.

👍

See discussion on Zulip. We're planning on adding support incrementally to make review easier for both ourselves and reviewers.

Currently, there's not much specific to the target. https://github.com/aarch64-switch-rs/cargo-nx works with --triple=aarch64-nintendo-switch.

👍

Assuming CI passes, I don't see any reason to think this would be an issue.