Skip to content

Commit 1d1acdd

Browse files
j-piaseckifacebook-github-bot
authored andcommitted
Use nightly Hermes by default when building iOS in OSS (#54864)
Summary: 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
1 parent 94a852c commit 1d1acdd

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)