current android 10 riscv64 build, we have to disable lto/cfi/tidy build option in Android.bp as the riscv llvm version we use miss those features. Here need to enable those lto/cfi/tidy in andorid clang/llvm
/riscv-android-src/frameworks/av$
diff --git a/media/codec2/sfplugin/Android.bp b/media/codec2/sfplugin/Android.bp
index 9c84c711e2..6e3f957e9b 100644
--- a/media/codec2/sfplugin/Android.bp
+++ b/media/codec2/sfplugin/Android.bp
@@ -53,7 +53,7 @@ cc_library_shared {
],
-
cfi: false,
misc_undefined: [
"unsigned-integer-overflow",
"signed-integer-overflow",
system/vold$
diff --git a/Android.bp b/Android.bp
index 1045dc2..4c1f0ac 100644
--- a/Android.bp
+++ b/Android.bp
@@ -15,12 +15,13 @@ cc_defaults {
tidy: true,
tidy_checks: [
"-*",
-
//FIXME: "cert-*",
"clang-analyzer-security*",
"android-*",
],
system/libhwbinder$
diff --git a/Android.bp b/Android.bp
index a5901e0..f81e48d 100644
--- a/Android.bp
+++ b/Android.bp
@@ -161,7 +162,7 @@ cc_defaults {
target: {
android: {
lto: {
current android 10 riscv64 build, we have to disable lto/cfi/tidy build option in Android.bp as the riscv llvm version we use miss those features. Here need to enable those lto/cfi/tidy in andorid clang/llvm
/riscv-android-src/frameworks/av$
diff --git a/media/codec2/sfplugin/Android.bp b/media/codec2/sfplugin/Android.bp
index 9c84c711e2..6e3f957e9b 100644
--- a/media/codec2/sfplugin/Android.bp
+++ b/media/codec2/sfplugin/Android.bp
@@ -53,7 +53,7 @@ cc_library_shared {
],
system/vold$
diff --git a/Android.bp b/Android.bp
index 1045dc2..4c1f0ac 100644
--- a/Android.bp
+++ b/Android.bp
@@ -15,12 +15,13 @@ cc_defaults {
tidy: true,
tidy_checks: [
"-*",
system/libhwbinder$
diff --git a/Android.bp b/Android.bp
index a5901e0..f81e48d 100644
--- a/Android.bp
+++ b/Android.bp
@@ -161,7 +162,7 @@ cc_defaults {
target: {
android: {
lto: {