Change RRO enforcement logic

Change RRO logic from
"Enforce RRO for all modules when PRODUCT_ENFORCE_RRO_TARGETS is '*'"
to
"Enforce RRO for all modules when PRODUCT_ENFORCE_RRO_TARGETS includes '*'"

Bug: b/137727426
Test: test build on local machine
Change-Id: I5df1a776d324c92c0c8bbf79b4f24536cb9b5c21
This commit is contained in:
Yo Chiang
2019-10-01 13:13:41 +08:00
parent fd3688c449
commit 4ebd06aa57

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)