Drop bootstrap.ninja.d
This also shaves off a couple seconds from the build. Test: `time m nothing` 2 times with and without the change Bug: 243699430 Change-Id: I5cc5cba2b98c845ddd6ba7c3b31ad678451afe41
This commit is contained in:
committed by
Usta (Tsering) Shrestha
parent
fb9ca5c7e2
commit
5bb4a5db9a
@@ -32,7 +32,6 @@ import (
|
|||||||
|
|
||||||
"github.com/google/blueprint"
|
"github.com/google/blueprint"
|
||||||
"github.com/google/blueprint/bootstrap"
|
"github.com/google/blueprint/bootstrap"
|
||||||
"github.com/google/blueprint/deptools"
|
|
||||||
"github.com/google/blueprint/microfactory"
|
"github.com/google/blueprint/microfactory"
|
||||||
|
|
||||||
"google.golang.org/protobuf/proto"
|
"google.golang.org/protobuf/proto"
|
||||||
@@ -344,12 +343,9 @@ func bootstrapBlueprint(ctx Context, config Config) {
|
|||||||
soongDocsInvocation},
|
soongDocsInvocation},
|
||||||
}
|
}
|
||||||
|
|
||||||
bootstrapDeps := bootstrap.RunBlueprint(blueprintArgs, bootstrap.DoEverything, blueprintCtx, blueprintConfig)
|
// since `bootstrap.ninja` is regenerated unconditionally, we ignore the deps, i.e. little
|
||||||
bootstrapDepFile := shared.JoinPath(config.SoongOutDir(), "bootstrap.ninja.d")
|
// reason to write a `bootstrap.ninja.d` file
|
||||||
err := deptools.WriteDepFile(bootstrapDepFile, blueprintArgs.OutFile, bootstrapDeps)
|
_ = bootstrap.RunBlueprint(blueprintArgs, bootstrap.DoEverything, blueprintCtx, blueprintConfig)
|
||||||
if err != nil {
|
|
||||||
ctx.Fatalf("Error writing depfile '%s': %s", bootstrapDepFile, err)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func checkEnvironmentFile(currentEnv *Environment, envFile string) {
|
func checkEnvironmentFile(currentEnv *Environment, envFile string) {
|
||||||
|
Reference in New Issue
Block a user