Consider only preferred modules for jdeps

Bug: 263327259
Test: run atest and see modules to be built
Change-Id: I208a07e2453b924f8af25db340d970ec039c5f32
This commit is contained in:
Inseob Kim
2023-01-11 11:30:42 +09:00
parent 3dfb939243
commit 48aa22380e

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