Merge SingletonProviderContext with OtherModuleProviderContext
Bug: 358425833 Test: CI Change-Id: I8e3f40dc3cfc5337008b419801f8e6bf2d48e8b2
This commit is contained in:
@@ -21,7 +21,7 @@ func (this *allCodeMetadataSingleton) GenerateBuildActions(ctx android.Singleton
|
||||
|
||||
ctx.VisitAllModules(
|
||||
func(module android.Module) {
|
||||
if metadata, ok := android.SingletonModuleProvider(ctx, module, CodeMetadataProviderKey); ok {
|
||||
if metadata, ok := android.OtherModuleProvider(ctx, module, CodeMetadataProviderKey); ok {
|
||||
intermediateMetadataPaths = append(intermediateMetadataPaths, metadata.IntermediatePath)
|
||||
}
|
||||
},
|
||||
|
@@ -21,7 +21,7 @@ func (this *allTestSpecsSingleton) GenerateBuildActions(ctx android.SingletonCon
|
||||
var intermediateMetadataPaths android.Paths
|
||||
|
||||
ctx.VisitAllModules(func(module android.Module) {
|
||||
if metadata, ok := android.SingletonModuleProvider(ctx, module, TestSpecProviderKey); ok {
|
||||
if metadata, ok := android.OtherModuleProvider(ctx, module, TestSpecProviderKey); ok {
|
||||
intermediateMetadataPaths = append(intermediateMetadataPaths, metadata.IntermediatePath)
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user