Revert "Do not consider disabled prebuilt variants."
This reverts commit 235e2fdbd3fcde27c432616d3ada8da914bf3f92.
Reason for revert: <build break>
Bug: 161315642
Change-Id: Ie741252dc1d0749591f141c71c3d59ce45f0234f
diff --git a/android/prebuilt.go b/android/prebuilt.go
index 269ad5d..9f4df28 100644
--- a/android/prebuilt.go
+++ b/android/prebuilt.go
@@ -225,7 +225,7 @@
// 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.Enabled() && m.Prebuilt() != nil {
+ if m, ok := ctx.Module().(PrebuiltInterface); ok && m.Prebuilt() != nil {
p := m.Prebuilt()
if !p.properties.PrebuiltRenamedToSource {
name := m.base().BaseModuleName()