Remove GeneratingPrimaryBuilder().
It's replaced with a flag in bootstrap.Args .
Test: "m nothing" (presubmits take a full workday these days)
Change-Id: Ia0bfa2091013e389890e583c559006077806af99
diff --git a/ui/build/soong.go b/ui/build/soong.go
index a8a65b1..fee5723 100644
--- a/ui/build/soong.go
+++ b/ui/build/soong.go
@@ -70,10 +70,6 @@
ninjaBuildDir string
}
-func (c BlueprintConfig) GeneratingPrimaryBuilder() bool {
- return true
-}
-
func (c BlueprintConfig) SrcDir() string {
return "."
}
@@ -101,6 +97,7 @@
args.OutFile = shared.JoinPath(config.SoongOutDir(), ".bootstrap/build.ninja")
args.DepFile = shared.JoinPath(config.SoongOutDir(), ".bootstrap/build.ninja.d")
args.GlobFile = shared.JoinPath(config.SoongOutDir(), ".bootstrap/soong-build-globs.ninja")
+ args.GeneratingPrimaryBuilder = true
blueprintCtx := blueprint.NewContext()
blueprintCtx.SetIgnoreUnknownModuleTypes(true)