Open heiher opened 2 weeks ago
This issue is not meant to be used for technical discussion. There is a Zulip stream for that. Use this issue to leave procedural comments, such as volunteering to review, indicating that you second the proposal (or third, etc), or raising a concern that you would like to be addressed.
Concerns or objections to the proposal should be discussed on Zulip and formally registered here by adding a comment with the following syntax:
@rustbot concern reason-for-concern
<description of the concern>
Concerns can be lifted with:
@rustbot resolve reason-for-concern
See documentation at https://forge.rust-lang.org
cc @rust-lang/compiler
@rustbot second
Confusing disappearing comment? If you write something and want to take it back, better post a clarification, since email notifications have already been sent.
EDIT: Ah, it got moved to Zulip.
@rustbot concern unsupported-architecture Android (the OS trademarked and provided by Google) has no intention of supporting Loongarch in the foreseeable future. It is not supported in the NDK, it is not supported by the platform, and there are no plans to accept contributions which would change this.
If the contributor needs an android-like platform, perhaps they could select a non android
name for their android-like-but-definitely-not-android operating system.
@rustbot concern unsupported-architecture Android (the OS trademarked and provided by Google) has no intention of supporting Loongarch in the foreseeable future. It is not supported in the NDK, it is not supported by the platform, and there are no plans to accept contributions which would change this.
If the contributor needs an android-like platform, perhaps they could select a non
android
name for their android-like-but-definitely-not-android operating system.
Thank you for the detailed feedback. I’d like to clarify that while LoongArch is not officially supported in the Android NDK or AOSP upstream yet, the LoongArch community has already made significant progress in enabling Android, including a working NDK and toolchain, as well as initial downstream AOSP support. Naming the target loongarch64-linux-android
aligns with Rust’s existing conventions and avoids unnecessary renaming if LoongArch gains official support in the future. Moreover, Rust's proactive support could help break implicit cycles—similar to what was done for riscv64-linux-android
—by demonstrating ecosystem readiness and fostering collaboration. This target would enable developers to experiment with Android-like environments on LoongArch, positioning Rust as a key enabler for emerging platforms while aligning with its goal of supporting diverse architectures. I hope this explanation addresses the concerns, and I’m open to further discussion to refine the proposal.
This concern makes sense to me and I don't think we should use this target name if the platform has not actually defined how this target should work upstream. If Android does support LoongArch in the future and they do not exactly match what our target definition says, the effects could range from annoying (on the low end) to unsound (more likely) and fixing targets after the fact is time consuming for maintainers and potentially confusing to users who don't understand the details of what is changing and what the impacts are.
If we want this target, I suggest picking a different name that doesn't include "Android" so there is no confusion regarding conformance with the actual Android platform itself.
Proposal
This MCP proposes adding a new tier 3 target for Android on LoongArch64:
Tier 3 target requirements
The target name is consistent with the one used by Android's NDK.
Android NDK is Apache 2.0 licensed. There are no legal issues.
OK
This target will fully support std.
OK
OK
OK
Mentors or Reviewers
Process
The main points of the Major Change Process are as follows:
@rustbot second
.-C flag
, then full team check-off is required.@rfcbot fcp merge
on either the MCP or the PR.You can read more about Major Change Proposals on forge.
Comments
This issue is not meant to be used for technical discussion. There is a Zulip stream for that. Use this issue to leave procedural comments, such as volunteering to review, indicating that you second the proposal (or third, etc), or raising a concern that you would like to be addressed.