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 react-native use JSI headers from ReactCommon instead of the copy from Hermes tarball #38922

Closed
wants to merge 1 commit into from

Conversation

dmytrorykun
Copy link
Contributor

Summary:
Changelog: [Internal]
This diff alows react-native to use its own copy of JSI from ReactCommom/jsi instead of consuming headers vendored with Hermes.

Differential Revision: D48152876

@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 Aug 10, 2023
@facebook-github-bot
Copy link
Contributor

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

@analysis-bot
Copy link

analysis-bot commented Aug 10, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,946,161 -22
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 9,540,076 -6
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: 8fa584f
Branch: main

@facebook-github-bot
Copy link
Contributor

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

dmytrorykun added a commit to dmytrorykun/react-native that referenced this pull request Aug 11, 2023
…y from Hermes tarball (facebook#38922)

Summary:
Pull Request resolved: facebook#38922

Changelog: [Internal]
This diff alows react-native to use its own copy of JSI from `ReactCommom/jsi` instead of consuming headers vendored with Hermes.

Reviewed By: NickGerleman

Differential Revision: D48152876

fbshipit-source-id: a09cb75f607f787b291c2cf7c2de310e9379a185
dmytrorykun added a commit to dmytrorykun/react-native that referenced this pull request Aug 21, 2023
…y from Hermes tarball (facebook#38922)

Summary:
Pull Request resolved: facebook#38922

Changelog: [Internal]
This diff alows react-native to use its own copy of JSI from `ReactCommom/jsi` instead of consuming headers vendored with Hermes.

Reviewed By: NickGerleman

Differential Revision: D48152876

fbshipit-source-id: fe262d56672d1ba8b1274752c2e8f53d39219953
…y from Hermes tarball (facebook#38922)

Summary:
Pull Request resolved: facebook#38922

Changelog: [Internal]
This diff alows react-native to use its own copy of JSI from `ReactCommom/jsi` instead of consuming headers vendored with Hermes.

Reviewed By: NickGerleman

Differential Revision: D48152876

fbshipit-source-id: 7990017a2356a3c7942dc087704e65696ae1b3dd
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in a66ebc5.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Aug 21, 2023
dmytrorykun added a commit to dmytrorykun/react-native that referenced this pull request Nov 15, 2023
…1499)

Summary:

After facebook#38922 we consume JSI from `ReactCommon/jsi`, and ignore JSI that is distributed with `hermes-engine`.

This diff removes `include/jsi` from `source_files` of `hermes-engine` so we don't get two sets of JSI headers - one from `ReactCommon`, and the other one from `hermes-engine`.

This diff also fixes accidental breakage of ODR violation, which was first fixed here facebook#35038
We will no longer compile JSI into `react-native` when linking against `hermes-engine`, which already has JSI in it.

Changelog: [iOS][Fixed] - Exclude JSI headers when using hermes-engine prebuilt.

Differential Revision: D51347562
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