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

Make sure the -DANDROID compilation flag is always included. #37451

Closed
wants to merge 1 commit into from

Conversation

cortinico
Copy link
Contributor

Summary:
It seems like starting from AGP 7.4, Android is not including the -DANDROID flag
anymore from the NDK toolchain.

As we do have several #ifdef logic that takes care of having this macro set,
I'm going to make sure it's always set for both ReactAndroid, hermes-engine
and the template.

Changelog:
[Android] [Fixed] - Make sure the -DANDROID compilation flag is always included

Differential Revision: D45908787

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner fb-exported labels May 16, 2023
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D45908787

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D45908787

cortinico added a commit to cortinico/react-native that referenced this pull request May 17, 2023
…k#37451)

Summary:
Pull Request resolved: facebook#37451

It seems like starting from AGP 7.4, Android is not including the `-DANDROID` flag
anymore from the NDK toolchain.

As we do have several `#ifdef` logic that takes care of having this macro set,
I'm going to make sure it's always set for both ReactAndroid, hermes-engine
and the template.

Changelog:
[Android] [Fixed] - Make sure the -DANDROID compilation flag is always included

Reviewed By: javache

Differential Revision: D45908787

fbshipit-source-id: ee28c9a6a314ead3a2bb74a3c9eb429c73e0bed0
@analysis-bot
Copy link

analysis-bot commented May 17, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,732,615 +68
android hermes armeabi-v7a 8,043,951 +11
android hermes x86 9,222,353 +381
android hermes x86_64 9,074,841 -83
android jsc arm64-v8a 9,297,709 -29
android jsc armeabi-v7a 8,486,576 +4
android jsc x86 9,358,527 -31
android jsc x86_64 9,615,065 -49

Base commit: f7dcc65
Branch: main

…k#37451)

Summary:
Pull Request resolved: facebook#37451

It seems like starting from AGP 7.4, Android is not including the `-DANDROID` flag
anymore from the NDK toolchain.

As we do have several `#ifdef` logic that takes care of having this macro set,
I'm going to make sure it's always set for both ReactAndroid, hermes-engine
and the template.

Changelog:
[Android] [Fixed] - Make sure the -DANDROID compilation flag is always included

Reviewed By: javache

Differential Revision: D45908787

fbshipit-source-id: 2b67ba61f28d01446d2d6b6230a2ca94e7f60e86
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D45908787

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 3a321ae.

kelset pushed a commit that referenced this pull request May 22, 2023
Summary:
Pull Request resolved: #37451

It seems like starting from AGP 7.4, Android is not including the `-DANDROID` flag
anymore from the NDK toolchain.

As we do have several `#ifdef` logic that takes care of having this macro set,
I'm going to make sure it's always set for both ReactAndroid, hermes-engine
and the template.

Changelog:
[Android] [Fixed] - Make sure the -DANDROID compilation flag is always included

Reviewed By: javache

Differential Revision: D45908787

fbshipit-source-id: 07284712d7bcce73dc8ea0dffd4a9d00af4de1d2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants