summaryrefslogtreecommitdiff
path: root/android/override_module.go
diff options
context:
space:
mode:
author Daniel Norman <danielnorman@google.com> 2021-08-26 15:44:43 -0700
committer Daniel Norman <danielnorman@google.com> 2021-09-02 09:28:52 -0700
commit5a3ce13c6a63e51557a344a752b308184e49230a (patch)
tree20cfdbd666f668a9fe8ad863383e2cbb0b3a8cf4 /android/override_module.go
parent0fd548dcd072f8cefad9243d5fad808dff64bf5c (diff)
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
Diffstat (limited to 'android/override_module.go')
-rw-r--r--android/override_module.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/override_module.go b/android/override_module.go
index e72cb787a..51e74d489 100644
--- a/android/override_module.go
+++ b/android/override_module.go
@@ -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)
}
}