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

Hermes: Use shared JSI from React Native on iOS #33885

Closed
wants to merge 3 commits into from

Conversation

hramos
Copy link
Contributor

@hramos hramos commented May 21, 2022

Summary:
When building Hermes for React Native, point to the React Native JSI location to ensure both React Native and Hermes use the exact same version of JSI.

The Hermes build scripts are meant to be invoked from the root of the hermes source directory. Not doing so can lead to build failures, so a PWD check has been added to enforce this assumption.

Changelog:
[iOS] [Changed] - When Hermes is enabled, it will use the same copy of JSI as React Native

Differential Revision: D36567471

@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 21, 2022
@facebook-github-bot
Copy link
Contributor

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

@react-native-bot react-native-bot added the Platform: iOS iOS applications. label May 21, 2022
@facebook-github-bot
Copy link
Contributor

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

hramos added a commit to hramos/react-native that referenced this pull request May 21, 2022
Summary:
Pull Request resolved: facebook#33885

When building Hermes for React Native, point to the React Native JSI location to ensure both React Native and Hermes use the exact same version of JSI.

Changelog:
[iOS] [Changed] - When Hermes is enabled, it will use the same copy of JSI as React Native

Differential Revision: D36567471

fbshipit-source-id: a0626aa3cf370a15bea7533231b189a332f538b2
@hramos hramos force-pushed the export-D36567471 branch from d62bb82 to 3cde969 Compare May 21, 2022 17:54
@facebook-github-bot
Copy link
Contributor

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

hramos added a commit to hramos/react-native that referenced this pull request May 21, 2022
Summary:
Pull Request resolved: facebook#33885

When building Hermes for React Native, point to the React Native JSI location to ensure both React Native and Hermes use the exact same version of JSI.

Changelog:
[iOS] [Changed] - When Hermes is enabled, it will use the same copy of JSI as React Native

Differential Revision: D36567471

fbshipit-source-id: 806693037683c9ec50726edbb74b030e9e93e886
@hramos hramos force-pushed the export-D36567471 branch from 3cde969 to f784bde Compare May 21, 2022 18:05
@facebook-github-bot
Copy link
Contributor

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

hramos added a commit to hramos/react-native that referenced this pull request May 21, 2022
Summary:
Pull Request resolved: facebook#33885

When building Hermes for React Native, point to the React Native JSI location to ensure both React Native and Hermes use the exact same version of JSI.

Changelog:
[iOS] [Changed] - When Hermes is enabled, it will use the same copy of JSI as React Native

Differential Revision: D36567471

fbshipit-source-id: fc7f0c68427e78957cd882ae646edf2ba00d2527
@hramos hramos force-pushed the export-D36567471 branch from f784bde to 5efb272 Compare May 21, 2022 20:00
@facebook-github-bot
Copy link
Contributor

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

hramos added a commit to hramos/react-native that referenced this pull request May 22, 2022
Summary:
Pull Request resolved: facebook#33885

When building Hermes for React Native, point to the React Native JSI location to ensure both React Native and Hermes use the exact same version of JSI.

Changelog:
[iOS] [Changed] - When Hermes is enabled, it will use the same copy of JSI as React Native

Differential Revision: D36567471

fbshipit-source-id: 5d1fda8a2576f1069795f650460480511717283b
@hramos hramos force-pushed the export-D36567471 branch from 5efb272 to 4c18d8e Compare May 22, 2022 01:20
@facebook-github-bot
Copy link
Contributor

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

@hramos hramos force-pushed the export-D36567471 branch from 4c18d8e to eaf3585 Compare June 7, 2022 17:56
hramos added a commit to hramos/react-native that referenced this pull request Jun 7, 2022
Summary:
Pull Request resolved: facebook#33885

When building Hermes for React Native, point to the React Native JSI location to ensure both React Native and Hermes use the exact same version of JSI.

Changelog:
[iOS] [Changed] - When Hermes is enabled, it will use the same copy of JSI as React Native

Differential Revision: D36567471

fbshipit-source-id: 210d9a6739881ea2e81d29b25b00607d0fb3eeb3
@analysis-bot
Copy link

analysis-bot commented Jun 7, 2022

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 7,782,640 +0
android hermes armeabi-v7a 7,172,350 +0
android hermes x86 8,093,283 +0
android hermes x86_64 8,069,317 +0
android jsc arm64-v8a 9,649,489 +0
android jsc armeabi-v7a 8,408,181 +0
android jsc x86 9,600,998 +0
android jsc x86_64 10,194,061 +0

Base commit: a0e6ffe
Branch: main

@analysis-bot
Copy link

analysis-bot commented Jun 7, 2022

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: df80ed4
Branch: main

@facebook-github-bot
Copy link
Contributor

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

hramos added a commit to hramos/react-native that referenced this pull request Jun 8, 2022
Summary:
Pull Request resolved: facebook#33885

When building Hermes for React Native, point to the React Native JSI location to ensure both React Native and Hermes use the exact same version of JSI.

Changelog:
[iOS] [Changed] - When Hermes is enabled, it will use the same copy of JSI as React Native

Reviewed By: cipolleschi

Differential Revision: D36567471

fbshipit-source-id: 6ec927d8fb5402f8511bcd6e6b3cb04111391e6a
@hramos hramos force-pushed the export-D36567471 branch from eaf3585 to 42192b1 Compare June 8, 2022 16:53
@facebook-github-bot
Copy link
Contributor

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

hramos added a commit to hramos/react-native that referenced this pull request Jun 8, 2022
Summary:
Pull Request resolved: facebook#33885

When building Hermes for React Native, point to the React Native JSI location to ensure both React Native and Hermes use the exact same version of JSI.

Changelog:
[iOS] [Changed] - When Hermes is enabled, it will use the same copy of JSI as React Native

Reviewed By: cipolleschi

Differential Revision: D36567471

fbshipit-source-id: d0eb559aba603a0848a8b5474fbe01ce3ad103ff
@hramos hramos force-pushed the export-D36567471 branch from 42192b1 to 3b3078b Compare June 8, 2022 20:35
Differential Revision: D36985477

fbshipit-source-id: eec0d050224b89dd6cc8ed434274bfa27ac20982
hramos added 2 commits June 9, 2022 10:46
Differential Revision: D36989241

fbshipit-source-id: 3013353c646de81e18ef3b74b26a43d8a7c37507
Summary:
Pull Request resolved: facebook#33885

When building Hermes for React Native, point to the React Native JSI location to ensure both React Native and Hermes use the exact same version of JSI.

Changelog:
[iOS] [Changed] - When Hermes is enabled, it will use the same copy of JSI as React Native

Reviewed By: cortinico, cipolleschi

Differential Revision: D36567471

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

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

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @hramos in 340612a.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label Jun 9, 2022
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 Platform: iOS iOS applications.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants