Skip to content

lto/cfi/tidy build option not been supported by riscv llvm version #1

@chenguoyin-alibaba

Description

@chenguoyin-alibaba

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 {
],

 sanitize: {
  •    cfi: true,
    
  •    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: [
"-*",

  •    "cert-*",
    
  •    //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: {

  •            thin: true,
    
  •            thin: false,
           },
       },
    
    },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions