Revert^2 "Use -target-feature for MTE"
This reverts commit b77d695fa1a4a1691b00db2d5f59e8fc1ef368ab.
Reason for revert: RBE workaround landed
Change-Id: I7cb9367cb6591030d91b4fd82ca4a2fa3380805a
diff --git a/cc/sanitize.go b/cc/sanitize.go
index 7b0652c..73b6271 100644
--- a/cc/sanitize.go
+++ b/cc/sanitize.go
@@ -79,7 +79,7 @@
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"}