Fix dependencies in strip.sh

strip.sh was including the dependencies of dexpreoptRule instead
of stripRule, resulting in incorrect rebuilds.

Bug: 124529711
Test: m && m
Change-Id: I4b40f7c040442a03918c16a46ecf777f5cc30130
This commit is contained in:
Colin Cross 2019-02-15 16:03:58 -08:00
parent 4e3c60128f
commit 25397f52ff
1 changed files with 2 additions and 2 deletions

View File

@ -133,10 +133,10 @@ func writeScripts(global dexpreopt.GlobalConfig, module dexpreopt.ModuleConfig,
depFile := &bytes.Buffer{} depFile := &bytes.Buffer{}
fmt.Fprint(depFile, `: \`+"\n") fmt.Fprint(depFile, `: \`+"\n")
for _, tool := range dexpreoptRule.Tools() { for _, tool := range rule.Tools() {
fmt.Fprintf(depFile, ` %s \`+"\n", tool) fmt.Fprintf(depFile, ` %s \`+"\n", tool)
} }
for _, input := range dexpreoptRule.Inputs() { for _, input := range rule.Inputs() {
// Assume the rule that ran the script already has a dependency on the input file passed on the // Assume the rule that ran the script already has a dependency on the input file passed on the
// command line. // command line.
if input != "$1" { if input != "$1" {