aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Android.bp10
1 files changed, 8 insertions, 2 deletions
diff --git a/Android.bp b/Android.bp
index 555223b..f40e05e 100644
--- a/Android.bp
+++ b/Android.bp
@@ -32,8 +32,7 @@ cc_library_static {
"signed-integer-overflow",
"bounds",
],
- // Enable CFI if this becomes a shared library.
- // cfi: true,
+ cfi: true,
},
shared_libs: [
"liblog",
@@ -58,6 +57,13 @@ cc_library_static {
darwin: {
enabled: false,
},
+ android: {
+ sanitize: {
+ diag: {
+ cfi: true,
+ },
+ },
+ },
},
apex_available: [