Skip to content

Commit 6be1092

Browse files
andrewdacenkofacebook-github-bot
authored andcommitted
Gate RN_SERIALIZABLE_STATE behind ANDROID flag
Summary: Changelog: [Internal] Gating RN_SERIALIZABLE_STATE behind ANDROID flag so we can build ReactCommon with cmake when targeting different platforms. This will help build reac-native-fantom for OSS. Differential Revision: D77034689
1 parent 999f437 commit 6be1092

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/react-native/ReactCommon/cmake-utils/react-native-flags.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ SET(reactnative_FLAGS
2828
2929
function(target_compile_reactnative_options target_name scope)
3030
target_compile_options(${target_name} ${scope} ${reactnative_FLAGS})
31-
target_compile_definitions(${target_name} ${scope} RN_SERIALIZABLE_STATE)
31+
# TODO T228344694 improve this so that it works for all platforms
32+
if(ANDROID)
33+
target_compile_definitions(${target_name} ${scope} RN_SERIALIZABLE_STATE)
34+
endif()
3235
endfunction()
33-

0 commit comments

Comments
 (0)