Pass StopBefore as an argument to RunBlueprint.

Its value is a function of the call site, so it doesn't make a lot of
sense to plumb it through the configuration.

Test: Presubmits.
Change-Id: If928b34de075969fd42932212ce9187808cbdf86
This commit is contained in:
Lukacs T. Berki
2021-09-07 17:54:38 +02:00
parent 337b47b81c
commit ffc9e8d812
3 changed files with 18 additions and 31 deletions

View File

@@ -263,7 +263,7 @@ func bootstrapBlueprint(ctx Context, config Config) {
}
args.EmptyNinjaFile = false
bootstrapDeps := bootstrap.RunBlueprint(args, blueprintCtx, blueprintConfig)
bootstrapDeps := bootstrap.RunBlueprint(args, bootstrap.DoEverything, blueprintCtx, blueprintConfig)
err := deptools.WriteDepFile(bootstrapDepFile, args.OutFile, bootstrapDeps)
if err != nil {
ctx.Fatalf("Error writing depfile '%s': %s", bootstrapDepFile, err)