summaryrefslogtreecommitdiff
path: root/android/base_module_context.go
diff options
context:
space:
mode:
author Yu Liu <yudiliu@google.com> 2025-02-28 12:05:20 -0800
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2025-02-28 12:05:20 -0800
commit58047e846963c84c2784a685d4c2644bd7c80ff6 (patch)
treec3b95847c8582b0d33fe7a6d78eed8c3d7a52e24 /android/base_module_context.go
parent9cbe288fa7eaf56a62c764bfcba35fc550543208 (diff)
parent71f1ea3f81feae294a3031799cd638c38610850e (diff)
Merge changes from topics "EqualModules", "tidyPhonySingleton" into main
* changes: Convert tidyPhonySingleton, jdepsGeneratorSingleton and genNoticeBuildRules to use ModuleProxy. Make EqualModules a free function.
Diffstat (limited to 'android/base_module_context.go')
-rw-r--r--android/base_module_context.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/android/base_module_context.go b/android/base_module_context.go
index 5e05f547a..d2404fd3e 100644
--- a/android/base_module_context.go
+++ b/android/base_module_context.go
@@ -34,8 +34,6 @@ type BaseModuleContext interface {
blueprintBaseModuleContext() blueprint.BaseModuleContext
- EqualModules(m1, m2 Module) bool
-
// OtherModuleName returns the name of another Module. See BaseModuleContext.ModuleName for more information.
// It is intended for use inside the visit functions of Visit* and WalkDeps.
OtherModuleName(m blueprint.Module) string
@@ -271,8 +269,8 @@ func getWrappedModule(module blueprint.Module) blueprint.Module {
return module
}
-func (b *baseModuleContext) EqualModules(m1, m2 Module) bool {
- return b.bp.EqualModules(getWrappedModule(m1), getWrappedModule(m2))
+func EqualModules(m1, m2 Module) bool {
+ return blueprint.EqualModules(getWrappedModule(m1), getWrappedModule(m2))
}
func (b *baseModuleContext) OtherModuleName(m blueprint.Module) string {