Add implicit inputs to primary builder actions

This is needed so primary builder actions can directly depend on their
glob result files.

Bug: 318434287
Test: rm -rf out && m nothing && m nothing
Change-Id: I5c67ee53c9f18f81c79c0fe13b3338eacaccdbc0
This commit is contained in:
Cole Faust 2024-01-02 16:58:49 -08:00
parent e1d71ae428
commit ef75beb068
2 changed files with 2 additions and 0 deletions

View file

@ -760,6 +760,7 @@ func (s *singleton) GenerateBuildActions(ctx blueprint.SingletonContext) {
Rule: generateBuildNinja, Rule: generateBuildNinja,
Outputs: i.Outputs, Outputs: i.Outputs,
Inputs: i.Inputs, Inputs: i.Inputs,
Implicits: i.Implicits,
OrderOnly: i.OrderOnlyInputs, OrderOnly: i.OrderOnlyInputs,
Args: map[string]string{ Args: map[string]string{
"builder": primaryBuilderFile, "builder": primaryBuilderFile,

View file

@ -106,6 +106,7 @@ const (
type PrimaryBuilderInvocation struct { type PrimaryBuilderInvocation struct {
Inputs []string Inputs []string
Implicits []string
OrderOnlyInputs []string OrderOnlyInputs []string
Outputs []string Outputs []string
Args []string Args []string