Add implicit outputs to ErrorRule rules
When building with ALLOW_MISSING_DEPENDENCIES=true, Soong replaces rules in modules that have missing dependencies with ErrorRule rules that print an error. The ErrorRules were not listing implicit outputs, which could lead to dangling dependencies. Test: manual Change-Id: Ife1604c0a9a1159087b12568fd4c2b69517d81a7
This commit is contained in:
parent
dc35e21124
commit
4b69c497da
|
@ -966,10 +966,12 @@ type moduleContext struct {
|
|||
|
||||
func (m *moduleContext) ninjaError(params BuildParams, err error) (PackageContext, BuildParams) {
|
||||
return pctx, BuildParams{
|
||||
Rule: ErrorRule,
|
||||
Description: params.Description,
|
||||
Output: params.Output,
|
||||
Outputs: params.Outputs,
|
||||
Rule: ErrorRule,
|
||||
Description: params.Description,
|
||||
Output: params.Output,
|
||||
Outputs: params.Outputs,
|
||||
ImplicitOutput: params.ImplicitOutput,
|
||||
ImplicitOutputs: params.ImplicitOutputs,
|
||||
Args: map[string]string{
|
||||
"error": err.Error(),
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue