Merge "bootstrap glob file list in one place"
This commit is contained in:
@@ -312,14 +312,6 @@ func bootstrapBlueprint(ctx Context, config Config) {
|
|||||||
fmt.Sprintf("generating Soong docs at %s", config.SoongDocsHtml()),
|
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 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
|
// 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
|
// so that the subninja doesn't fail on clean builds
|
||||||
@@ -342,7 +334,7 @@ func bootstrapBlueprint(ctx Context, config Config) {
|
|||||||
runGoTests: !config.skipSoongTests,
|
runGoTests: !config.skipSoongTests,
|
||||||
// If we want to debug soong_build, we need to compile it for debugging
|
// If we want to debug soong_build, we need to compile it for debugging
|
||||||
debugCompilation: os.Getenv("SOONG_DELVE") != "",
|
debugCompilation: os.Getenv("SOONG_DELVE") != "",
|
||||||
subninjas: globFiles,
|
subninjas: bootstrapGlobFileList(config),
|
||||||
primaryBuilderInvocations: []bootstrap.PrimaryBuilderInvocation{
|
primaryBuilderInvocations: []bootstrap.PrimaryBuilderInvocation{
|
||||||
mainSoongBuildInvocation,
|
mainSoongBuildInvocation,
|
||||||
bp2buildInvocation,
|
bp2buildInvocation,
|
||||||
|
Reference in New Issue
Block a user