aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2017-12-30 17:54:27 -0800
committerColin Cross <ccross@android.com>2018-01-02 18:23:43 -0800
commitee6143cde25cbe41df754337de89d608ca890bb1 (patch)
tree7e972f8184630590cc38542c9cda9758cd7609f1 /python
parentb4330e222b8df54727d0054075d63f2dcdf0a959 (diff)
downloadbuild_soong-ee6143cde25cbe41df754337de89d608ca890bb1.tar.gz
build_soong-ee6143cde25cbe41df754337de89d608ca890bb1.tar.bz2
build_soong-ee6143cde25cbe41df754337de89d608ca890bb1.zip
Add VisitDirectDepsWithTag
Add a method on ModuleContext and TopDownMutatorContext to visit direct dependencies that have a given dependency tag. Test: m checkbuild Change-Id: Ib875563091dcae6b7282b3e3427d0eb07d8c8af5
Diffstat (limited to 'python')
-rw-r--r--python/binary.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/python/binary.go b/python/binary.go
index 457c7fa0..0314edb8 100644
--- a/python/binary.go
+++ b/python/binary.go
@@ -133,10 +133,7 @@ func (binary *binaryDecorator) bootstrap(ctx android.ModuleContext, actual_versi
var launcher_path android.Path
if embedded_launcher {
- ctx.VisitDirectDeps(func(m android.Module) {
- if ctx.OtherModuleDependencyTag(m) != launcherTag {
- return
- }
+ ctx.VisitDirectDepsWithTag(launcherTag, func(m android.Module) {
if provider, ok := m.(IntermPathProvider); ok {
if launcher_path != nil {
panic(fmt.Errorf("launcher path was found before: %q",