Skip to content

Commit 25b6fd5

Browse files
j-piaseckimeta-codesync[bot]
authored andcommitted
Add RN_BUILDING to fantom (#58392)
Summary: Pull Request resolved: #58392 Update Fantom build config to compile with `RN_BUILDING` defined, allowing all includes within Fantom. Changelog: [Internal] ___ Differential Revision: D117860963 fbshipit-source-id: d83eb7e3d6d3d8e45efd3b1b49e68894c1c63b09
1 parent 9b2a54e commit 25b6fd5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎private/react-native-fantom/tester/CMakeLists.txt‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ add_fantom_third_party_subdir(folly)
3838
add_fantom_third_party_subdir(gflags)
3939
add_fantom_third_party_subdir(nlohmann_json)
4040

41+
# Marks everything added below as React Native's own build, to enable private
42+
# includes in Fantom.
43+
add_compile_definitions(RN_BUILDING)
44+
4145
add_subdirectory(${FANTOM_CODEGEN_DIR} codegen)
4246

4347
add_library(glog_init INTERFACE)

0 commit comments

Comments
 (0)