Merge "Skip DepsMutator on disabled modules"

This commit is contained in:
Treehugger Robot
2018-08-30 22:56:32 +00:00
committed by Gerrit Code Review
2 changed files with 1 additions and 5 deletions

View File

@@ -205,7 +205,7 @@ func (mutator *mutator) Parallel() MutatorHandle {
}
func depsMutator(ctx BottomUpMutatorContext) {
if m, ok := ctx.Module().(Module); ok {
if m, ok := ctx.Module().(Module); ok && m.Enabled() {
m.DepsMutator(ctx)
}
}

View File

@@ -922,10 +922,6 @@ func (c *Module) beginMutator(actx android.BottomUpMutatorContext) {
}
func (c *Module) DepsMutator(actx android.BottomUpMutatorContext) {
if !c.Enabled() {
return
}
ctx := &depsContext{
BottomUpMutatorContext: actx,
moduleContextImpl: moduleContextImpl{