Ship the build log and trace on the build servers

Test: m -j; m -j dist
Change-Id: I4718e7a0cda6719bbab4243038ea2666c212cf19
This commit is contained in:
Dan Willemsen
2017-02-04 17:30:44 -08:00
parent 6d34b308ff
commit 8a073a8b7b
3 changed files with 25 additions and 4 deletions

View File

@@ -102,7 +102,7 @@ func main() {
log.Println("Output directory:", *outDir)
build.SetupOutDir(buildCtx, config)
log.SetOutput(filepath.Join(config.OutDir(), "build.log"))
log.SetOutput(filepath.Join(config.OutDir(), "soong.log"))
trace.SetOutput(filepath.Join(config.OutDir(), "build.trace"))
vars, err := build.DumpMakeVars(buildCtx, config, nil, nil, []string{"all_named_products"})
@@ -137,7 +137,7 @@ func main() {
}
productLog := logger.New(&bytes.Buffer{})
productLog.SetOutput(filepath.Join(productOutDir, "build.log"))
productLog.SetOutput(filepath.Join(productOutDir, "soong.log"))
productCtx := build.Context{&build.ContextImpl{
Context: ctx,