Merge "Consider only preferred modules for jdeps"

This commit is contained in:
Treehugger Robot
2023-01-11 08:42:35 +00:00
committed by Gerrit Code Review

View File

@@ -52,6 +52,11 @@ func (j *jdepsGeneratorSingleton) GenerateBuildActions(ctx android.SingletonCont
return
}
// Prevent including both prebuilts and matching source modules when one replaces the other.
if !android.IsModulePreferred(module) {
return
}
ideInfoProvider, ok := module.(android.IDEInfo)
if !ok {
return