File tree Expand file tree Collapse file tree
packages/react-native/ReactCommon Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,4 +32,11 @@ function(target_compile_reactnative_options target_name scope)
3232 if(ANDROID)
3333 target_compile_definitions(${target_name} ${scope} RN_SERIALIZABLE_STATE)
3434 endif()
35+ if(${CMAKE_BUILD_TYPE } MATCHES Debug OR REACT_NATIVE_DEBUG_OPTIMIZED)
36+ # We enable REACT_NATIVE_DEBUGGER_ENABLED for Debug builds on the whole codebase.
37+ target_compile_options(${target_name} PRIVATE
38+ -DREACT_NATIVE_DEBUGGER_ENABLED=1
39+ -DREACT_NATIVE_DEBUGGER_ENABLED_DEVONLY=1
40+ )
41+ endif ()
3542endfunction()
Original file line number Diff line number Diff line change @@ -29,9 +29,4 @@ target_link_libraries(jsinspector
2929 react_utils
3030)
3131target_compile_reactnative_options (jsinspector PRIVATE )
32- if (${CMAKE_BUILD_TYPE } MATCHES Debug OR REACT_NATIVE_DEBUG_OPTIMIZED)
33- target_compile_options (jsinspector PRIVATE
34- -DREACT_NATIVE_DEBUGGER_ENABLED=1
35- -DREACT_NATIVE_DEBUGGER_ENABLED_DEVONLY=1
36- )
37- endif ()
32+
Original file line number Diff line number Diff line change @@ -21,10 +21,3 @@ target_link_libraries(react_networking
2121 jsinspector_tracing
2222 react_performance_timeline
2323 react_timing )
24-
25- if (${CMAKE_BUILD_TYPE } MATCHES Debug OR REACT_NATIVE_DEBUG_OPTIMIZED)
26- target_compile_options (react_networking PRIVATE
27- -DREACT_NATIVE_DEBUGGER_ENABLED=1
28- -DREACT_NATIVE_DEBUGGER_ENABLED_DEVONLY=1
29- )
30- endif ()
You can’t perform that action at this time.
0 commit comments