diff options
author | 2025-03-14 15:56:03 -0700 | |
---|---|---|
committer | 2025-03-14 15:56:03 -0700 | |
commit | f2aacebb28cf16f9c3fa4c59a9a9a931ab6b0846 (patch) | |
tree | da660a6da02da57b771ebc1f7ea1bf3189a90c47 /android/base_module_context.go | |
parent | 5fe9b839b0b67218bcdfdbeec06b6813f040939e (diff) | |
parent | f22120fb1da7f75a571966124bb0da6a57fd4f07 (diff) |
Merge "Change CommonModuleInfoProvider to a pointer." into main
Diffstat (limited to 'android/base_module_context.go')
-rw-r--r-- | android/base_module_context.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/android/base_module_context.go b/android/base_module_context.go index eba367034..5cb9e71cf 100644 --- a/android/base_module_context.go +++ b/android/base_module_context.go @@ -410,7 +410,7 @@ func (b *baseModuleContext) validateAndroidModuleProxy( return &aModule } - if !OtherModuleProviderOrDefault(b, module, CommonModuleInfoProvider).Enabled { + if !OtherModulePointerProviderOrDefault(b, module, CommonModuleInfoProvider).Enabled { if t, ok := tag.(AllowDisabledModuleDependency); !ok || !t.AllowDisabledModuleDependencyProxy(b, aModule) { if b.Config().AllowMissingDependencies() { b.AddMissingDependencies([]string{b.OtherModuleName(aModule)}) @@ -440,7 +440,7 @@ func (b *baseModuleContext) getDirectDepsInternal(name string, tag blueprint.Dep func (b *baseModuleContext) getDirectDepsProxyInternal(name string, tag blueprint.DependencyTag) []ModuleProxy { var deps []ModuleProxy b.VisitDirectDepsProxy(func(module ModuleProxy) { - if OtherModuleProviderOrDefault(b, module, CommonModuleInfoProvider).BaseModuleName == name { + if OtherModulePointerProviderOrDefault(b, module, CommonModuleInfoProvider).BaseModuleName == name { returnedTag := b.OtherModuleDependencyTag(module) if tag == nil || returnedTag == tag { deps = append(deps, module) |