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
This commit is contained in:
Jingwen Chen
2020-11-10 08:17:59 -05:00
parent c0ea1701cb
commit a26ac3caee

View File

@@ -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)