Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf8ab858 authored by Chris Parsons's avatar Chris Parsons
Browse files

disable bazel by default

Test: m nothing, verified bp2build was not run
Test: presubmits
Change-Id: I7476194f8424fa4f199fb94e1cbd0b3c84339fd9
parent 4efd3365
Loading
Loading
Loading
Loading
+0 −16
Original line number Diff line number Diff line
@@ -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) {