gn2bp: Fix compilation of libc++
* Just addition of some required flags to compile libc++.
* rtti is needed for dynamic cast
* -fexceptions is needed to allow libc++ to throw exceptions
This isn't the best way to actually implement this as each and every target that link against libc++ will need to add those 2 flags.
Test: m cronet_aml_components_cronet_android_cronet
Change-Id: I8d76130d860919936bf316c59ded90bb0ded37ee
diff --git a/tools/gn2bp/Android.bp.swp b/tools/gn2bp/Android.bp.swp
index 2114c8c..cc629db 100644
--- a/tools/gn2bp/Android.bp.swp
+++ b/tools/gn2bp/Android.bp.swp
@@ -1942,6 +1942,10 @@
"jni_headers",
],
cpp_std: "c++20",
+ cppflags: [
+ "-fexceptions",
+ ],
+ rtti: true,
}
// GN: //components/cronet/android:cronet_jni_headers