Merge "bootstrap glob file list in one place"

This commit is contained in:
Usta Shrestha
2022-08-10 15:07:17 +00:00
committed by Gerrit Code Review

View File

@@ -312,14 +312,6 @@ func bootstrapBlueprint(ctx Context, config Config) {
fmt.Sprintf("generating Soong docs at %s", config.SoongDocsHtml()),
)
globFiles := []string{
config.NamedGlobFile(soongBuildTag),
config.NamedGlobFile(bp2buildTag),
config.NamedGlobFile(jsonModuleGraphTag),
config.NamedGlobFile(queryviewTag),
config.NamedGlobFile(soongDocsTag),
}
// The glob .ninja files are subninja'd. However, they are generated during
// the build itself so we write an empty file if the file does not exist yet
// so that the subninja doesn't fail on clean builds
@@ -342,7 +334,7 @@ func bootstrapBlueprint(ctx Context, config Config) {
runGoTests: !config.skipSoongTests,
// If we want to debug soong_build, we need to compile it for debugging
debugCompilation: os.Getenv("SOONG_DELVE") != "",
subninjas: globFiles,
subninjas: bootstrapGlobFileList(config),
primaryBuilderInvocations: []bootstrap.PrimaryBuilderInvocation{
mainSoongBuildInvocation,
bp2buildInvocation,