gn2bp: add //base linker scripts
There is currently no support in GnUtils for linker scripts (though, it
wouldn't be hard to add, so we should totally do that in the future).
Test: m cronet_aml_components_cronet_android_cronet
Change-Id: I84f7a084501e689d46b48951bb06b6e6be3c5883
diff --git a/tools/gn2bp/Android.bp.swp b/tools/gn2bp/Android.bp.swp
index d1a1158..33bfbcd 100644
--- a/tools/gn2bp/Android.bp.swp
+++ b/tools/gn2bp/Android.bp.swp
@@ -1944,6 +1944,12 @@
"jni_headers",
],
cpp_std: "c++20",
+ linker_scripts: [
+ "base/android/library_loader/anchor_functions.lds",
+ ],
+ cppflags: [
+ "-fexceptions",
+ ],
rtti: true,
}
@@ -4124,6 +4130,9 @@
"build/linux/debian_bullseye_amd64-sysroot/usr/include",
],
cpp_std: "c++20",
+ cppflags: [
+ "-fexceptions",
+ ],
rtti: true,
}