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