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:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user