From 25b6fd57ffbe8b37d154e3e11a8912984a29ce13 Mon Sep 17 00:00:00 2001 From: Jakub Piasecki Date: Tue, 8 Sep 2026 02:04:52 -0700 Subject: [PATCH] Add RN_BUILDING to fantom (#58392) Summary: Pull Request resolved: https://github.com/react/react-native/pull/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 --- private/react-native-fantom/tester/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/private/react-native-fantom/tester/CMakeLists.txt b/private/react-native-fantom/tester/CMakeLists.txt index 82d20ed253f..af4c741f5ab 100644 --- a/private/react-native-fantom/tester/CMakeLists.txt +++ b/private/react-native-fantom/tester/CMakeLists.txt @@ -38,6 +38,10 @@ add_fantom_third_party_subdir(folly) add_fantom_third_party_subdir(gflags) add_fantom_third_party_subdir(nlohmann_json) +# Marks everything added below as React Native's own build, to enable private +# includes in Fantom. +add_compile_definitions(RN_BUILDING) + add_subdirectory(${FANTOM_CODEGEN_DIR} codegen) add_library(glog_init INTERFACE)