Merge "disable bazel by default" into main

This commit is contained in:
Treehugger Robot
2023-10-26 19:58:50 +00:00
committed by Gerrit Code Review

View File

@@ -205,19 +205,6 @@ func loadEnvConfig(ctx Context, config *configImpl, bc string) error {
return nil
}
func defaultBazelProdMode(cfg *configImpl) bool {
// Environment flag to disable Bazel for users which experience
// broken bazel-handled builds, or significant performance regressions.
if cfg.IsBazelMixedBuildForceDisabled() {
return false
}
// Darwin-host builds are currently untested with Bazel.
if runtime.GOOS == "darwin" {
return false
}
return true
}
func UploadOnlyConfig(ctx Context, args ...string) Config {
ret := &configImpl{
environ: OsEnvironment(),
@@ -892,9 +879,6 @@ func (c *configImpl) parseArgs(ctx Context, args []string) {
c.arguments = append(c.arguments, arg)
}
}
if (!c.bazelProdMode) && (!c.bazelStagingMode) {
c.bazelProdMode = defaultBazelProdMode(c)
}
}
func validateNinjaWeightList(weightListFilePath string) (err error) {