Skip to content

RNGP - Honor the --active-arch-only when configuring the NDK - #35860

Closed
cortinico wants to merge 1 commit into
react:mainfrom
cortinico:export-D42547987
Closed

RNGP - Honor the --active-arch-only when configuring the NDK#35860
cortinico wants to merge 1 commit into
react:mainfrom
cortinico:export-D42547987

Conversation

@cortinico

Copy link
Copy Markdown
Contributor

Summary:
I've just realized that the --active-arch-only is not correctly passed down
to RNGP to set up an abiFilter so users on 0.71 on New Architecture end up
building all the architectures even if --active-arch-only is set.

This fix makes sure the abiFilters is applied if the user specified
either the --active-arch-only, the reactNativeArchitectures property
and is not using the Split ABI feature.

Changelog:
[Android] [Fixed] - RNGP - Honor the --active-arch-only when configuring the NDK

Differential Revision: D42547987

Summary:
I've just realized that the `--active-arch-only` is not correctly passed down
to RNGP to set up an abiFilter so users on 0.71 on New Architecture end up
building all the architectures even if `--active-arch-only` is set.
This fix makes sure the `abiFilters` is applied if the user specified
either the `--active-arch-only`, the `reactNativeArchitectures` property
and is not using the Split ABI feature.
Changelog:
[Android] [Fixed] - RNGP - Honor the --active-arch-only when configuring the NDK
Differential Revision: D42547987
fbshipit-source-id: f1170101b206aa5a0d32582c6950761f9e7dee37
@facebook-github-botfacebook-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 Jan 17, 2023
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@analysis-bot

Copy link
Copy Markdown
PlatformEngineArchSize (bytes)Diff
androidhermesarm64-v8a8,465,533+0
androidhermesarmeabi-v7a7,786,280+0
androidhermesx868,939,013+0
androidhermesx86_648,797,083+0
androidjscarm64-v8a9,650,654+0
androidjscarmeabi-v7a8,385,129+0
androidjscx869,712,847+0
androidjscx86_6410,190,031+0

Base commit: 8ea1cba
Branch: main

@facebook-github-botfacebook-github-bot added the Merged This PR has been merged. label Jan 18, 2023
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request has been merged in 470f79b.

kelset pushed a commit that referenced this pull request Jan 19, 2023
Summary:
Pull Request resolved: #35860
I've just realized that the `--active-arch-only` is not correctly passed down
to RNGP to set up an abiFilter so users on 0.71 on New Architecture end up
building all the architectures even if `--active-arch-only` is set.
This fix makes sure the `abiFilters` is applied if the user specified
either the `--active-arch-only`, the `reactNativeArchitectures` property
and is not using the Split ABI feature.
Changelog:
[Android] [Fixed] - RNGP - Honor the --active-arch-only when configuring the NDK
Reviewed By: cipolleschi
Differential Revision: D42547987
fbshipit-source-id: 5a34e7087bb4f89de74cc52f9c505e36896fbf03
@cipolleschicipolleschi mentioned this pull request Oct 11, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BugCLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.fb-exportedMergedThis PR has been merged.p: FacebookPartner: FacebookPartnerPlatform: AndroidAndroid applications.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@cortinico@facebook-github-bot@analysis-bot@react-native-bot