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

Commit a26ac3ca authored by Jingwen Chen's avatar Jingwen Chen
Browse files

Export Ninja file paths to lunch repo rule from bazel.go

This ensures that the lunch repo rule always reads the right Ninja file.

Test: USE_BAZEL=1 m
Test: m

Change-Id: I7f670dd538f46c4dae5ea537b857ff04520b60e7
parent c0ea1701
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -33,6 +33,11 @@ func runBazel(ctx Context, config Config) {
		outputGroups = strings.Join(config.ninjaArgs, ",")
	}

	config.environ.Set("COMBINED_NINJA", config.CombinedNinjaFile())
	config.environ.Set("KATI_NINJA", config.KatiBuildNinjaFile())
	config.environ.Set("PACKAGE_NINJA", config.KatiPackageNinjaFile())
	config.environ.Set("SOONG_NINJA", config.SoongNinjaFile())

	bazelExecutable := filepath.Join("tools", "bazel")
	cmd := Command(ctx, config, "bazel", bazelExecutable)