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

Update Android target to use new build system integration #102756

Closed
wants to merge 1 commit into from

Conversation

pcc
Copy link
Contributor

@pcc pcc commented Oct 6, 2022

Currently the Android build support relies on standalone toolchains which are obsolete as of NDK r19. This change adds support for the new build system integration described here:

https://developer.android.com/ndk/guides/other_build_systems

This avoids developers needing to create a standalone toolchain for each target as well as needing to specify the NDK path on each target, as the NDK path is now specified via [build]. The target-specific android-ndk option is still available for users of standalone toolchains.

Currently the Android build support relies on standalone toolchains which
are obsolete as of NDK r19. This change adds support for the new build
system integration described here:

https://developer.android.com/ndk/guides/other_build_systems

This avoids developers needing to create a standalone toolchain for each
target as well as needing to specify the NDK path on each target, as the
NDK path is now specified via [build]. The target-specific android-ndk
option is still available for users of standalone toolchains.
@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Mark-Simulacrum (or someone else) soon.

Please see the contribution instructions for more information.

@rustbot rustbot added the T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) label Oct 6, 2022
@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 6, 2022
@bors
Copy link
Contributor

bors commented Oct 9, 2022

☔ The latest upstream changes (presumably #102332) made this pull request unmergeable. Please resolve the merge conflicts.

@jyn514
Copy link
Member

jyn514 commented Oct 12, 2022

This was already done in #102332 to my understanding.

@jyn514 jyn514 closed this Oct 12, 2022
@pcc
Copy link
Contributor Author

pcc commented Oct 13, 2022

The main missing piece from that PR was a cleanup of the config.toml and command line interface to make it easier to specify the NDK path. Sent #102994 to do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants