soong: generator: Update for BP1A

Change-Id: Icd8b04d2297a12a1dbbee1713e495949b7b2379a
diff --git a/build/soong/generator/generator.go b/build/soong/generator/generator.go
index 4041df2..32889ba 100644
--- a/build/soong/generator/generator.go
+++ b/build/soong/generator/generator.go
@@ -144,7 +144,8 @@
 	tools := map[string]android.Path{}
 
 	if len(g.properties.Tools) > 0 {
-		ctx.VisitDirectDepsBlueprint(func(module blueprint.Module) {
+		ctx.VisitDirectDepsProxyAllowDisabled(func(proxy android.ModuleProxy) {
+			module := android.PrebuiltGetPreferred(ctx, proxy)
 			switch ctx.OtherModuleDependencyTag(module) {
 			case hostToolDepTag:
 				tool := ctx.OtherModuleName(module)