aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2017-02-04 17:30:44 -0800
committerDan Willemsen <dwillemsen@google.com>2017-02-07 16:51:11 -0800
commit8a073a8b7ba74f7efe6141ab6a575c881b87e40f (patch)
tree37a05ce28be5665bafcbe8d920e15b44102ae0ae /ui
parent6d34b308ff8c87425163c3dbc864aa388f18d468 (diff)
downloadbuild_soong-8a073a8b7ba74f7efe6141ab6a575c881b87e40f.tar.gz
build_soong-8a073a8b7ba74f7efe6141ab6a575c881b87e40f.tar.bz2
build_soong-8a073a8b7ba74f7efe6141ab6a575c881b87e40f.zip
Ship the build log and trace on the build servers
Test: m -j; m -j dist Change-Id: I4718e7a0cda6719bbab4243038ea2666c212cf19
Diffstat (limited to 'ui')
-rw-r--r--ui/build/config.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/ui/build/config.go b/ui/build/config.go
index 35c5213d..4853643c 100644
--- a/ui/build/config.go
+++ b/ui/build/config.go
@@ -35,6 +35,7 @@ type configImpl struct {
parallel int
keepGoing int
verbose bool
+ dist bool
// From the product config
katiArgs []string
@@ -90,6 +91,8 @@ func NewConfig(ctx Context, args ...string) Config {
} else if arg == "showcommands" {
ret.verbose = true
continue
+ } else if arg == "dist" {
+ ret.dist = true
}
if arg[0] == '-' {
var err error
@@ -183,6 +186,13 @@ func (c *configImpl) OutDir() string {
return "out"
}
+func (c *configImpl) DistDir() string {
+ if distDir, ok := c.environ.Get("DIST_DIR"); ok {
+ return distDir
+ }
+ return filepath.Join(c.OutDir(), "dist")
+}
+
func (c *configImpl) NinjaArgs() []string {
return c.ninjaArgs
}
@@ -198,6 +208,10 @@ func (c *configImpl) KatiSuffix() string {
panic("SetKatiSuffix has not been called")
}
+func (c *configImpl) Dist() bool {
+ return c.dist
+}
+
func (c *configImpl) IsVerbose() bool {
return c.verbose
}