Merge "Change RRO enforcement logic"

am: fdc9afa15b

Change-Id: Ia72f34bee493afd455d5ca9ee23e495b048d516c
This commit is contained in:
Yo Chiang 2019-10-01 19:47:43 -07:00 committed by android-build-merger
commit 0a52b0eab9
1 changed files with 1 additions and 1 deletions

View File

@ -800,7 +800,7 @@ func (c *config) ArtUseReadBarrier() bool {
func (c *config) EnforceRROForModule(name string) bool {
enforceList := c.productVariables.EnforceRROTargets
if enforceList != nil {
if len(enforceList) == 1 && (enforceList)[0] == "*" {
if InList("*", enforceList) {
return true
}
return InList(name, enforceList)