disable bazel by default
Test: m nothing, verified bp2build was not run Test: presubmits Change-Id: I7476194f8424fa4f199fb94e1cbd0b3c84339fd9
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user