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

fix: Restore backwards C++ compatibility for NDK23 #6553

Merged
merged 3 commits into from
Sep 27, 2024

Conversation

tjzel
Copy link
Collaborator

@tjzel tjzel commented Sep 26, 2024

Summary

Turns out preliminary support for NDK27 in

broke support for NDK23. This PR brings back support for NDK23 which is used in React Native 0.72.

Test plan

  • All GitHub actions pass.

Notes

Fixes

@tjzel tjzel added the Check compatibility Trigger a time-consuming compatibility check action label Sep 26, 2024
Copy link
Member

@tomekzaw tomekzaw left a comment

Choose a reason for hiding this comment

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

Clever macro!

@tjzel tjzel added this pull request to the merge queue Sep 27, 2024
Merged via the queue into main with commit 7e13105 Sep 27, 2024
40 checks passed
@tjzel tjzel deleted the @tjzel/ndk23-compatibility branch September 27, 2024 11:39
tjzel added a commit that referenced this pull request Oct 1, 2024
Turns out preliminary support for NDK27 in
- #6495

broke support for NDK23. This PR brings back support for NDK23 which is
used in React Native 0.72.

- [ ] All GitHub actions pass.

Fixes
- #6512
@lkinasiewicz
Copy link
Contributor

lkinasiewicz commented Oct 8, 2024

Hi, the c++ version value is wrong - it's not 20202L but 202002L. The fix does not work.
https://en.cppreference.com/w/cpp/preprocessor/replace#Predefined_macros

@tjzel
Copy link
Collaborator Author

tjzel commented Oct 10, 2024

god damnit

@jeanregisser
Copy link
Contributor

I just proposed a fix for the value: #6590

github-merge-queue bot pushed a commit that referenced this pull request Oct 11, 2024
<!-- Thanks for submitting a pull request! We appreciate you spending
the time to work on these changes. Please follow the template so that
the reviewers can easily understand what the code changes affect. -->

## Summary

<!-- Explain the motivation for this PR. Include "Fixes #<number>" if
applicable. -->
There was a small typo in #6553 which caused building with c++17 to
still fail.

## Test plan

<!-- Provide a minimal but complete code snippet that can be used to
test out this change along with instructions how to run it and a
description of the expected behavior. -->

Build works again with RN 0.72 which uses c++17.

## Notes

- Fixes
#6512 (comment)
- Fixes #6584
tjzel pushed a commit that referenced this pull request Oct 11, 2024
<!-- Thanks for submitting a pull request! We appreciate you spending
the time to work on these changes. Please follow the template so that
the reviewers can easily understand what the code changes affect. -->

## Summary

<!-- Explain the motivation for this PR. Include "Fixes #<number>" if
applicable. -->
There was a small typo in #6553 which caused building with c++17 to
still fail.

## Test plan

<!-- Provide a minimal but complete code snippet that can be used to
test out this change along with instructions how to run it and a
description of the expected behavior. -->

Build works again with RN 0.72 which uses c++17.

## Notes

- Fixes
#6512 (comment)
- Fixes #6584
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Check compatibility Trigger a time-consuming compatibility check action
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Android build failing with react-native-reanimated 3.15.2 (RN 0.72.15, NDK 23)
4 participants