From 5137d2da4dbcde359b91ba19f320de80e85c0028 Mon Sep 17 00:00:00 2001 From: Dmitry Muhomor Date: Fri, 27 Oct 2023 21:26:38 +0300 Subject: [PATCH] android: enable MTE on devices that declare having it --- Android.bp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Android.bp b/Android.bp index 11725a6..0db6a04 100644 --- a/Android.bp +++ b/Android.bp @@ -73,6 +73,9 @@ cc_library { debuggable: { cflags: ["-DLABEL_MEMORY"], }, + device_has_arm_mte: { + cflags: ["-DHAS_ARM_MTE", "-march=armv9-a+memtag"] + }, }, apex_available: [ "com.android.runtime",