Do not consider disabled prebuilt variants.
Test: m nothing Test: `m` with prebuilt SDKs in the manifest Bug: 151303681 Change-Id: I44d3a3cc4d7c1e02cc0ec61827646801f804b168
This commit is contained in:
@@ -225,7 +225,7 @@ func PrebuiltRenameMutator(ctx BottomUpMutatorContext) {
|
||||
// PrebuiltSourceDepsMutator adds dependencies to the prebuilt module from the
|
||||
// corresponding source module, if one exists for the same variant.
|
||||
func PrebuiltSourceDepsMutator(ctx BottomUpMutatorContext) {
|
||||
if m, ok := ctx.Module().(PrebuiltInterface); ok && m.Prebuilt() != nil {
|
||||
if m, ok := ctx.Module().(PrebuiltInterface); ok && m.Enabled() && m.Prebuilt() != nil {
|
||||
p := m.Prebuilt()
|
||||
if !p.properties.PrebuiltRenamedToSource {
|
||||
name := m.base().BaseModuleName()
|
||||
|
Reference in New Issue
Block a user