Merge "Don't visit disabled modules with SOONG_COLLECT_JAVA_DEPS=true"

This commit is contained in:
Treehugger Robot
2019-03-23 14:41:37 +00:00
committed by Gerrit Code Review

View File

@@ -51,6 +51,10 @@ func (j *jdepsGeneratorSingleton) GenerateBuildActions(ctx android.SingletonCont
moduleInfos := make(map[string]android.IdeInfo)
ctx.VisitAllModules(func(module android.Module) {
if !module.Enabled() {
return
}
ideInfoProvider, ok := module.(android.IDEInfo)
if !ok {
return