Revert "Remove fdoProfileMutator"
Revert submission 2925209
Reason for revert: b/323975183
Reverted changes: /q/submissionid:2925209
Change-Id: I33b2e71ba7b36e12e5c491e0ad14a7f7df3edd78
diff --git a/cc/cc.go b/cc/cc.go
index 480d314..cac52cf 100644
--- a/cc/cc.go
+++ b/cc/cc.go
@@ -55,6 +55,7 @@
ctx.BottomUp("test_per_src", TestPerSrcMutator).Parallel()
ctx.BottomUp("version", versionMutator).Parallel()
ctx.BottomUp("begin", BeginMutator).Parallel()
+ ctx.BottomUp("fdo_profile", fdoProfileMutator).Parallel()
})
ctx.PostDepsMutators(func(ctx android.RegisterMutatorsContext) {
@@ -1381,7 +1382,7 @@
func (c *Module) isAfdoCompile() bool {
if afdo := c.afdo; afdo != nil {
- return afdo.Properties.Afdo || afdo.Properties.AfdoDep
+ return afdo.Properties.FdoProfilePath != nil
}
return false
}