Assert android.ApexModule interface for types having ApexModuleBase
Bug: 173472337 Test: m nothing Change-Id: Idf1c6cb9fff6c18e34c4636e38a662ba4ff7d538
This commit is contained in:
4
cc/cc.go
4
cc/cc.go
@@ -2992,6 +2992,9 @@ func (c *Module) AndroidMkWriteAdditionalDependenciesForSourceAbiDiff(w io.Write
|
||||
}
|
||||
}
|
||||
|
||||
var _ android.ApexModule = (*Module)(nil)
|
||||
|
||||
// Implements android.ApexModule
|
||||
func (c *Module) DepIsInSameApex(ctx android.BaseModuleContext, dep android.Module) bool {
|
||||
depTag := ctx.OtherModuleDependencyTag(dep)
|
||||
libDepTag, isLibDepTag := depTag.(libraryDependencyTag)
|
||||
@@ -3025,6 +3028,7 @@ func (c *Module) DepIsInSameApex(ctx android.BaseModuleContext, dep android.Modu
|
||||
return true
|
||||
}
|
||||
|
||||
// Implements android.ApexModule
|
||||
func (c *Module) ShouldSupportSdkVersion(ctx android.BaseModuleContext,
|
||||
sdkVersion android.ApiLevel) error {
|
||||
// We ignore libclang_rt.* prebuilt libs since they declare sdk_version: 14(b/121358700)
|
||||
|
Reference in New Issue
Block a user