Allows prebuilts in override_apex.

Bug: 197787336
Test: Create an override_apex that uses a different `prebuilts` than its
      base. Observe built contents.
Test: apex_test.go
Change-Id: I7666ed6cfe3f2fa5dd81e5f8c1961477dabbbd3c
This commit is contained in:
Daniel Norman
2021-08-26 15:44:43 -07:00
parent 0fd548dcd0
commit 5a3ce13c6a
3 changed files with 39 additions and 23 deletions

View File

@@ -295,7 +295,7 @@ func performOverrideMutator(ctx BottomUpMutatorContext) {
}
func overridableModuleDepsMutator(ctx BottomUpMutatorContext) {
if b, ok := ctx.Module().(OverridableModule); ok {
if b, ok := ctx.Module().(OverridableModule); ok && b.Enabled() {
b.OverridablePropertiesDepsMutator(ctx)
}
}