Loading android/config.go +4 −0 Original line number Diff line number Diff line Loading @@ -748,6 +748,10 @@ func (c *config) UseGoma() bool { return Bool(c.productVariables.UseGoma) } func (c *config) UseRBE() bool { return Bool(c.productVariables.UseRBE) } func (c *config) RunErrorProne() bool { return c.IsEnvTrue("RUN_ERROR_PRONE") } Loading android/variable.go +1 −0 Original line number Diff line number Diff line Loading @@ -206,6 +206,7 @@ type productVariables struct { HostStaticBinaries *bool `json:",omitempty"` Binder32bit *bool `json:",omitempty"` UseGoma *bool `json:",omitempty"` UseRBE *bool `json:",omitempty"` Debuggable *bool `json:",omitempty"` Eng *bool `json:",omitempty"` Treble_linker_namespaces *bool `json:",omitempty"` Loading ui/build/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -52,6 +52,7 @@ bootstrap_go_package { "ninja.go", "path.go", "proc_sync.go", "rbe.go", "signal.go", "soong.go", "test_build.go", Loading ui/build/build.go +5 −0 Original line number Diff line number Diff line Loading @@ -161,6 +161,11 @@ func Build(ctx Context, config Config, what int) { startGoma(ctx, config) } if config.StartRBE() { // Ensure RBE proxy is started startRBE(ctx, config) } if what&BuildProductConfig != 0 { // Run make for product config runMakeProductConfig(ctx, config) Loading ui/build/config.go +24 −0 Original line number Diff line number Diff line Loading @@ -745,6 +745,30 @@ func (c *configImpl) StartGoma() bool { return true } func (c *configImpl) UseRBE() bool { if v, ok := c.environ.Get("USE_RBE"); ok { v = strings.TrimSpace(v) if v != "" && v != "false" { return true } } return false } func (c *configImpl) StartRBE() bool { if !c.UseRBE() { return false } if v, ok := c.environ.Get("NOSTART_RBE"); ok { v = strings.TrimSpace(v) if v != "" && v != "false" { return false } } return true } // RemoteParallel controls how many remote jobs (i.e., commands which contain // gomacc) are run in parallel. Note the parallelism of all other jobs is // still limited by Parallel() Loading Loading
android/config.go +4 −0 Original line number Diff line number Diff line Loading @@ -748,6 +748,10 @@ func (c *config) UseGoma() bool { return Bool(c.productVariables.UseGoma) } func (c *config) UseRBE() bool { return Bool(c.productVariables.UseRBE) } func (c *config) RunErrorProne() bool { return c.IsEnvTrue("RUN_ERROR_PRONE") } Loading
android/variable.go +1 −0 Original line number Diff line number Diff line Loading @@ -206,6 +206,7 @@ type productVariables struct { HostStaticBinaries *bool `json:",omitempty"` Binder32bit *bool `json:",omitempty"` UseGoma *bool `json:",omitempty"` UseRBE *bool `json:",omitempty"` Debuggable *bool `json:",omitempty"` Eng *bool `json:",omitempty"` Treble_linker_namespaces *bool `json:",omitempty"` Loading
ui/build/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -52,6 +52,7 @@ bootstrap_go_package { "ninja.go", "path.go", "proc_sync.go", "rbe.go", "signal.go", "soong.go", "test_build.go", Loading
ui/build/build.go +5 −0 Original line number Diff line number Diff line Loading @@ -161,6 +161,11 @@ func Build(ctx Context, config Config, what int) { startGoma(ctx, config) } if config.StartRBE() { // Ensure RBE proxy is started startRBE(ctx, config) } if what&BuildProductConfig != 0 { // Run make for product config runMakeProductConfig(ctx, config) Loading
ui/build/config.go +24 −0 Original line number Diff line number Diff line Loading @@ -745,6 +745,30 @@ func (c *configImpl) StartGoma() bool { return true } func (c *configImpl) UseRBE() bool { if v, ok := c.environ.Get("USE_RBE"); ok { v = strings.TrimSpace(v) if v != "" && v != "false" { return true } } return false } func (c *configImpl) StartRBE() bool { if !c.UseRBE() { return false } if v, ok := c.environ.Get("NOSTART_RBE"); ok { v = strings.TrimSpace(v) if v != "" && v != "false" { return false } } return true } // RemoteParallel controls how many remote jobs (i.e., commands which contain // gomacc) are run in parallel. Note the parallelism of all other jobs is // still limited by Parallel() Loading