diff --git a/android/rule_builder.go b/android/rule_builder.go index 41d2fa64b..75f1b5d9c 100644 --- a/android/rule_builder.go +++ b/android/rule_builder.go @@ -523,6 +523,12 @@ func (r *RuleBuilder) Build(name string, desc string) { }) } + // Outputs that were marked Temporary will not be checked that they are in the output + // directory by the loop above, check them here. + for path := range r.temporariesSet { + Rel(r.ctx, r.outDir.String(), path.String()) + } + // Add a hash of the list of input files to the manifest so that the textproto file // changes when the list of input files changes and causes the sbox rule that // depends on it to rerun.