Revert "Deduplicate APEX variants that would build identically"
This reverts commit d6b2525b00
.
Reason for revert: <Breaks tests - confirmed by Forrest: b/165188843>
Change-Id: I7cb68cb87522415004390c0672dc774e0067b122
This commit is contained in:
18
cc/cc.go
18
cc/cc.go
@@ -2390,7 +2390,7 @@ func (c *Module) depsToPaths(ctx android.ModuleContext) PathDeps {
|
||||
if ccDep.CcLibrary() && !libDepTag.static() {
|
||||
depIsStubs := ccDep.BuildStubs()
|
||||
depHasStubs := VersionVariantAvailable(c) && ccDep.HasStubsVariants()
|
||||
depInSameApexes := android.DirectlyInAllApexes(c.InApexes(), depName)
|
||||
depInSameApex := android.DirectlyInApex(c.ApexVariationName(), depName)
|
||||
depInPlatform := !android.DirectlyInAnyApex(ctx, depName)
|
||||
|
||||
var useThisDep bool
|
||||
@@ -2420,9 +2420,9 @@ func (c *Module) depsToPaths(ctx android.ModuleContext) PathDeps {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// If building for APEX, use stubs when the parent is in any APEX that
|
||||
// the child is not in.
|
||||
useThisDep = (depInSameApexes != depIsStubs)
|
||||
// If building for APEX, use stubs only when it is not from
|
||||
// the same APEX
|
||||
useThisDep = (depInSameApex != depIsStubs)
|
||||
}
|
||||
|
||||
// when to use (unspecified) stubs, check min_sdk_version and choose the right one
|
||||
@@ -2895,16 +2895,6 @@ func (c *Module) TestFor() []string {
|
||||
}
|
||||
}
|
||||
|
||||
func (c *Module) UniqueApexVariations() bool {
|
||||
if u, ok := c.compiler.(interface {
|
||||
uniqueApexVariations() bool
|
||||
}); ok {
|
||||
return u.uniqueApexVariations()
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
// Return true if the module is ever installable.
|
||||
func (c *Module) EverInstallable() bool {
|
||||
return c.installer != nil &&
|
||||
|
Reference in New Issue
Block a user