Merge "Use -target-feature for MTE" into main am: 9df15c9101 am: 7f50e5347d

Original change: https://android-review.googlesource.com/c/platform/build/+/3261733

Change-Id: I0e674a0342401195a4116a82165f05b27e54d207
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Florian Mayer
2024-09-19 21:13:57 +00:00
committed by Automerger Merge Worker

View File

@@ -284,9 +284,9 @@ endif
ifneq ($(filter memtag_stack,$(my_sanitize)),)
my_cflags += -fsanitize=memtag-stack
my_ldflags += -fsanitize=memtag-stack
my_cflags += -march=armv8a+memtag
my_ldflags += -march=armv8a+memtag
my_asflags += -march=armv8a+memtag
my_cflags += -Xclang -target-feature -Xclang +mte
my_ldflags += -Xclang -target-feature -Xclang +mte
my_asflags += -Xclang -target-feature -Xclang +mte
my_sanitize := $(filter-out memtag_stack,$(my_sanitize))
endif