Merge "Make bgplob an exception to dangling rule check."

This commit is contained in:
Lukács T. Berki 2021-11-10 17:19:44 +00:00 committed by Gerrit Code Review
commit 9303cd6f87

View file

@ -76,6 +76,9 @@ func testForDanglingRules(ctx Context, config Config) {
// out/build_date.txt is considered a "source file"
buildDatetimeFilePath := filepath.Join(outDir, "build_date.txt")
// bpglob is built explicitly using Microfactory
bpglob := filepath.Join(config.SoongOutDir(), "bpglob")
danglingRules := make(map[string]bool)
scanner := bufio.NewScanner(stdout)
@ -88,7 +91,8 @@ func testForDanglingRules(ctx Context, config Config) {
if strings.HasPrefix(line, modulePathsDir) ||
line == variablesFilePath ||
line == dexpreoptConfigFilePath ||
line == buildDatetimeFilePath {
line == buildDatetimeFilePath ||
line == bpglob {
// Leaf node is in one of Soong's bootstrap directories, which do not have
// full build rules in the primary build.ninja file.
continue