From 94d296d3d75428daceb03a55c01d77b4538d10ad Mon Sep 17 00:00:00 2001 From: Florian Mayer Date: Wed, 11 Sep 2024 16:51:04 +0000 Subject: [PATCH] Use -target-feature for MTE This combines with other features. Bug: 366222162 Change-Id: Ia560e34ec8b83e075cef863d2a7f84fb01882049 --- cc/sanitize.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cc/sanitize.go b/cc/sanitize.go index 7b0652c38..73b6271bc 100644 --- a/cc/sanitize.go +++ b/cc/sanitize.go @@ -79,7 +79,7 @@ var ( minimalRuntimeFlags = []string{"-fsanitize-minimal-runtime", "-fno-sanitize-trap=integer,undefined", "-fno-sanitize-recover=integer,undefined"} - memtagStackCommonFlags = []string{"-march=armv8-a+memtag"} + memtagStackCommonFlags = []string{"-Xclang -target-feature -Xclang +mte"} memtagStackLlvmFlags = []string{"-dom-tree-reachability-max-bbs-to-explore=128"} hostOnlySanitizeFlags = []string{"-fno-sanitize-recover=all"}