Delete creation of empty glob file am: 3a495910ad
Original change: https://android-review.googlesource.com/c/platform/build/blueprint/+/1736533
Change-Id: I9f3365344ef37afa9f389b604c4a68a2d7f8c995
diff --git a/bootstrap/command.go b/bootstrap/command.go
index 4a938db..b9ae7aa 100644
--- a/bootstrap/command.go
+++ b/bootstrap/command.go
@@ -120,20 +120,6 @@
return result
}
-func writeEmptyGlobFile(path string) {
- err := os.MkdirAll(filepath.Dir(path), 0777)
- if err != nil {
- fatalf("Failed to create parent directories of empty ninja glob file '%s': %s", path, err)
- }
-
- if _, err := os.Stat(path); os.IsNotExist(err) {
- err = ioutil.WriteFile(path, nil, 0666)
- if err != nil {
- fatalf("Failed to create empty ninja glob file '%s': %s", path, err)
- }
- }
-}
-
// Returns the list of dependencies the emitted Ninja files has. These can be
// written to the .d file for the output so that it is correctly rebuilt when
// needed in case Blueprint is itself invoked from Ninja
@@ -191,8 +177,6 @@
primaryBuilderNinjaGlobFile := absolutePath(filepath.Join(args.BuildDir, bootstrapSubDir, "build-globs.ninja"))
mainNinjaFile := filepath.Join("$buildDir", "build.ninja")
- writeEmptyGlobFile(primaryBuilderNinjaGlobFile)
-
var invocations []PrimaryBuilderInvocation
if args.PrimaryBuilderInvocations != nil {