Allow disabling RTTI/exceptions for android builds; disable by default on Android

Summary:
For fbandroid builds only, disable RTTI and exceptions by default.

Changelog: [Internal]

Reviewed By: philIip

Differential Revision: D31632757

fbshipit-source-id: cfe0e43486df19fcaacc2b5b818b9d00ec2d427f
This commit is contained in:
Joshua Gross
2021-10-19 17:17:30 -07:00
committed by Facebook GitHub Bot
parent e494e4beb6
commit d291a7efdd
8 changed files with 44 additions and 34 deletions
@@ -11,8 +11,8 @@ rn_xplat_cxx_library(
],
prefix = "react/fabric",
),
compiler_flags_enable_exceptions = True,
compiler_flags_enable_rtti = True, # dynamic_cast used within Binding.cpp
compiler_flags_enable_exceptions = False,
compiler_flags_enable_rtti = False, # for YogaLayoutableShadowNode?
fbandroid_allow_jni_merging = True,
labels = ["supermodule:xplat/default/public.react_native.infra"],
platforms = ANDROID,