Skip to content

Commit 311d4e9

Browse files
grabboufacebook-github-bot
authored andcommitted
feat: enable bitcode (#365)
Summary: Bitcode is turned on by default in React Native and so, setting it here as well. Changelog: [iOS] [Changed] - Upgraded JSI with a new HERMES_ENABLE_BITCODE flag Pull Request resolved: facebook/hermes#365 Reviewed By: tmikov Differential Revision: D23823228 Pulled By: Huxpro fbshipit-source-id: d43638818a733f6a87b2f4a1ecadad8ea9c7a419
1 parent 3a6327a commit 311d4e9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ReactCommon/jsi/jsi/CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC")
2121
# when they go out of scope due to exceptions.
2222
list(APPEND jsi_compile_flags "/EHsc")
2323
endif()
24+
if (HERMES_ENABLE_BITCODE)
25+
list(APPEND jsi_compile_flags "-fembed-bitcode")
26+
endif ()
2427
target_compile_options(jsi PUBLIC ${jsi_compile_flags})
2528

2629
install(DIRECTORY "${PROJECT_SOURCE_DIR}/API/jsi/" DESTINATION include

0 commit comments

Comments
 (0)