gn2bp: Add `rtti: true` to net
* This is a fix for `undefined symbol: typeinfo [class]`
Test: m cronet_aml_components_cronet_android_cronet
Change-Id: I074dea63ae36804344dd53ecee0e61a6fbf0b628
diff --git a/tools/gn2bp/Android.bp.swp b/tools/gn2bp/Android.bp.swp
index 926061d..1e0552a 100644
--- a/tools/gn2bp/Android.bp.swp
+++ b/tools/gn2bp/Android.bp.swp
@@ -3326,6 +3326,7 @@
"jni_headers",
],
cpp_std: "c++20",
+ rtti: true,
}
// GN: //net:net_deps
diff --git a/tools/gn2bp/gen_android_bp b/tools/gn2bp/gen_android_bp
index c46095a..b222d6f 100755
--- a/tools/gn2bp/gen_android_bp
+++ b/tools/gn2bp/gen_android_bp
@@ -118,6 +118,9 @@
'cronet_aml_net_third_party_quiche_quiche',
'cronet_aml_crypto_crypto',
}),
+ # When a code is compiled under rtti(cronet) that depends on another code(net)
+ # that doesn't depend on rtti. undefined symbol: typeinfo 'class' errors appears.
+ ('rtti', True), # go/undefined-symbol-typeinfo
('whole_static_libs', {
'cronet_aml_net_third_party_quiche_quiche',
'cronet_aml_base_base',
@@ -132,7 +135,7 @@
# allowed for platform code.
"-fexceptions",
})
- ]
+ ],
}