Update for sharded globs

Update the path bootstrap_test.sh uses to check for bpglob reruns
to follow the changes made for sharding globs.

Use bootstrap.GlobFileListFiles to get dependencies during bpbuild.

Test: tests/bootstrap_test.sh
Bug: 159845846
Change-Id: Ibaa7c4360881ed6b666a811bf34b19ea0cdcafe9
This commit is contained in:
Colin Cross
2021-04-12 22:25:17 -07:00
parent 9e7cea2c0b
commit cb33a00992
2 changed files with 3 additions and 4 deletions

View File

@@ -25,6 +25,7 @@ import (
"android/soong/bp2build"
"android/soong/shared"
"github.com/google/blueprint/bootstrap"
"github.com/google/blueprint/deptools"
@@ -389,9 +390,7 @@ func runBp2Build(configuration android.Config, extraNinjaDeps []string) {
blueprintArgs := bootstrap.CmdlineArgs
ninjaDeps := bootstrap.RunBlueprint(blueprintArgs, bp2buildCtx.Context, configuration, extraNinjaDeps...)
for _, globPath := range bp2buildCtx.Globs() {
ninjaDeps = append(ninjaDeps, globPath.FileListFile(configuration.BuildDir()))
}
ninjaDeps = append(ninjaDeps, bootstrap.GlobFileListFiles(configuration)...)
depFile := bp2buildMarker + ".d"
err = deptools.WriteDepFile(shared.JoinPath(topDir, depFile), bp2buildMarker, ninjaDeps)