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

Build for Android with NDK 26, by accounting for the new nullability annotations #2600

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

finagolfin
Copy link
Contributor

Motivation:

Fix build for the latest LTS NDK 26

Modifications:

  • Update C declarations
  • Add force unwraps where needed

Result:

Everything works on Android with NDK 26b

This is needed because Bionic recently added a bunch of these annotations. I made sure this pull doesn't break anything by testing it on linux x86_64, and the force unwraps with the previous NDK 25c too. I used this patch with others to build the Swift toolchain and this package for my Android CI, finagolfin/swift-android-sdk#122.

…annotations

Motivation:

Fix build for the latest LTS NDK 26

Modifications:

- Update C declarations
- Add force unwraps where needed

Result:

Everything works on Android with NDK 26b
Copy link
Contributor

@Lukasa Lukasa left a comment

Choose a reason for hiding this comment

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

Thanks for the cleanup!

@Lukasa Lukasa merged commit 4223cb3 into apple:main Nov 27, 2023
8 checks passed
@Lukasa Lukasa added the semver/patch No public API change. label Nov 27, 2023
@finagolfin finagolfin deleted the droid branch November 27, 2023 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants