Revert "Use -target-feature for MTE"
Revert submission 3493411-target_feature_mte
Reason for revert: The infrastructure upgrades necessary to support
this change still have not been completed. To submit this change,
re-client needs to be upgraded to v0.170 or greater.
Reverted changes: /q/submissionid:3493411-target_feature_mte
Bug: 366222162
Bug: 399925046
Change-Id: I062f722393e5c96f1c3b1be05fc0f023c6cc4a44
diff --git a/cc/sanitize.go b/cc/sanitize.go
index e7598e7..d8d8c7a 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{"-Xclang -target-feature -Xclang +mte"}
+ memtagStackCommonFlags = []string{"-march=armv8-a+memtag"}
memtagStackLlvmFlags = []string{"-dom-tree-reachability-max-bbs-to-explore=128"}
hostOnlySanitizeFlags = []string{"-fno-sanitize-recover=all"}