Make bp2build_all_srcs manual.

So that ... and :all target patterns don't pick it up.

Test: b build //bionic/libc/... and check that none of the filegroups
are built.

Change-Id: I79cd6fb6f7559409ae3e5b95b8b260970810cf7f
This commit is contained in:
Jingwen Chen
2023-09-20 10:25:09 +00:00
parent c0f7bd1a15
commit 5802d0795b

View File

@@ -837,7 +837,7 @@ func GenerateBazelTargets(ctx *CodegenContext, generateFilegroups bool) (convers
for dir := range dirs {
buildFileToTargets[dir] = append(buildFileToTargets[dir], BazelTarget{
name: "bp2build_all_srcs",
content: `filegroup(name = "bp2build_all_srcs", srcs = glob(["**/*"]))`,
content: `filegroup(name = "bp2build_all_srcs", srcs = glob(["**/*"]), tags = ["manual"])`,
ruleClass: "filegroup",
})
}