Skip to content

cmake: add android runtime build caches #59173

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

Merged
merged 1 commit into from
Jun 4, 2022
Merged

Conversation

compnerd
Copy link
Member

These cache files allow building the runtime via cross-compilation for
Android ARMv7 and AArch64.

These cache files allow building the runtime via cross-compilation for
Android ARMv7 and AArch64.
@compnerd
Copy link
Member Author

@swift-ci please smoke test

@finagolfin
Copy link
Member

Oh, nice, how are these to be used?

# NOTE(compnerd) this is lollipop, which seems to still have decent usage.
set(SWIFT_ANDROID_API_LEVEL 21 CACHE STRING "")
# NOTE(compnerd) this matches the value from the NDK r24.
set(SWIFT_ANDROID_NDK_CLANG_VERSION 14.0.1 CACHE STRING "" FORCE)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The latest LTS NDK 23c was just released and it uses 12.0.9, I think it'd be better to use that but up to you. I was planning on submitting a pull updating that in the default CMake configuration and the docs.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that going with the latest release is reasonable, but so is the LTS release. I think that I am going to go with this for the time being, but this is something to revisit in the future. A more interesting thing would be to see if we can completely remove the need to specify the version and compute that dynamically instead.

@compnerd compnerd merged commit 3b849e0 into swiftlang:main Jun 4, 2022
@compnerd compnerd deleted the android branch June 4, 2022 15:25
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

Successfully merging this pull request may close these issues.

2 participants