Output informational messages only when BP2BUILD_VERBOSE is set.

Test: manual
Change-Id: Ieeb00a002e07b04449d70614ce205c47c1dd7bce
This commit is contained in:
Sasha Smundak
2022-05-19 19:34:31 -07:00
parent 6a2b7c40b3
commit 0fd93e0756
8 changed files with 28 additions and 19 deletions

View File

@@ -552,7 +552,7 @@ func runBp2Build(configuration android.Config, extraNinjaDeps []string) {
excludes = append(excludes, getTemporaryExcludes()...)
symlinkForestDeps := bp2build.PlantSymlinkForest(
topDir, workspaceRoot, generatedRoot, ".", excludes)
configuration, topDir, workspaceRoot, generatedRoot, ".", excludes)
ninjaDeps = append(ninjaDeps, codegenContext.AdditionalNinjaDeps()...)
ninjaDeps = append(ninjaDeps, symlinkForestDeps...)
@@ -566,7 +566,9 @@ func runBp2Build(configuration android.Config, extraNinjaDeps []string) {
// Only report metrics when in bp2build mode. The metrics aren't relevant
// for queryview, since that's a total repo-wide conversion and there's a
// 1:1 mapping for each module.
metrics.Print()
if configuration.IsEnvTrue("BP2BUILD_VERBOSE") {
metrics.Print()
}
writeBp2BuildMetrics(&metrics, configuration, eventHandler)
}