Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 033bfa6e authored by Jingwen Chen's avatar Jingwen Chen Committed by Gerrit Code Review
Browse files

Merge "queryview: blocklist package module type."

parents 1a0485b3 96af35be
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -173,6 +173,12 @@ func GenerateBazelTargets(ctx bpToBuildContext, codegenMode CodegenMode) map[str
			}
			t = generateBazelTarget(ctx, m)
		case QueryView:
			// Blocklist certain module types from being generated.
			if canonicalizeModuleType(ctx.ModuleType(m)) == "package" {
				// package module name contain slashes, and thus cannot
				// be mapped cleanly to a bazel label.
				return
			}
			t = generateSoongModuleTarget(ctx, m)
		default:
			panic(fmt.Errorf("Unknown code-generation mode: %s", codegenMode))