Merge "Set default pool when RBE or goma is enabled"
This commit is contained in:
@@ -767,6 +767,10 @@ func (c *configImpl) StartRBE() bool {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *configImpl) UseRemoteBuild() bool {
|
||||||
|
return c.UseGoma() || c.UseRBE()
|
||||||
|
}
|
||||||
|
|
||||||
// RemoteParallel controls how many remote jobs (i.e., commands which contain
|
// RemoteParallel controls how many remote jobs (i.e., commands which contain
|
||||||
// gomacc) are run in parallel. Note the parallelism of all other jobs is
|
// gomacc) are run in parallel. Note the parallelism of all other jobs is
|
||||||
// still limited by Parallel()
|
// still limited by Parallel()
|
||||||
|
@@ -89,6 +89,10 @@ func runKati(ctx Context, config Config, extraSuffix string, args []string, envF
|
|||||||
args = append(args, "--empty_ninja_file")
|
args = append(args, "--empty_ninja_file")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if config.UseRemoteBuild() {
|
||||||
|
args = append(args, "--default_pool=local_pool")
|
||||||
|
}
|
||||||
|
|
||||||
cmd := Command(ctx, config, "ckati", executable, args...)
|
cmd := Command(ctx, config, "ckati", executable, args...)
|
||||||
cmd.Sandbox = katiSandbox
|
cmd.Sandbox = katiSandbox
|
||||||
pipe, err := cmd.StdoutPipe()
|
pipe, err := cmd.StdoutPipe()
|
||||||
|
@@ -43,7 +43,7 @@ func runNinja(ctx Context, config Config) {
|
|||||||
args = append(args, config.NinjaArgs()...)
|
args = append(args, config.NinjaArgs()...)
|
||||||
|
|
||||||
var parallel int
|
var parallel int
|
||||||
if config.UseGoma() || config.UseRBE() {
|
if config.UseRemoteBuild() {
|
||||||
parallel = config.RemoteParallel()
|
parallel = config.RemoteParallel()
|
||||||
} else {
|
} else {
|
||||||
parallel = config.Parallel()
|
parallel = config.Parallel()
|
||||||
|
Reference in New Issue
Block a user