Skip to content

Commit 66d1ec0

Browse files
j-piaseckimeta-codesync[bot]
authored andcommitted
Use nightly Hermes by default when building iOS in OSS (#54864)
Summary: Pull Request resolved: #54864 Changelog: [Internal] Changes the default behavior for local iOS builds inside the monorepo to use the nightly hermes version (if set) instead of building from source. If build from source is needed, it's possible to force by using `RCT_BUILD_HERMES_FROM_SOURCE` env variable. Reviewed By: cipolleschi Differential Revision: D89042837 fbshipit-source-id: 14cd1fa9855ede7cd6961ef149d85c912095d102
1 parent 076e6a1 commit 66d1ec0

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

packages/react-native/sdks/hermes-engine/hermes-engine.podspec

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ else
2828
version = versionProperties['HERMES_VERSION_NAME']
2929
end
3030

31+
# Local monorepo build
32+
if package['version'] == "1000.0.0" then
33+
hermesCompilerVersion = package['dependencies']['hermes-compiler']
34+
if hermesCompilerVersion != "0.0.0" then
35+
version = hermesCompilerVersion
36+
end
37+
end
38+
3139
source_type = hermes_source_type(version, react_native_path)
3240
source = podspec_source(source_type, version, react_native_path)
3341

0 commit comments

Comments
 (0)