Revert "Run bpfix at the end of androidmk"
This reverts commit 7fd905ae26
.
Reason for revert: postsubmit build broken
Change-Id: Iddff17616c7307918380e15c1ed69ee5625a6c8e
This commit is contained in:
@@ -29,7 +29,6 @@ blueprint_go_binary {
|
|||||||
deps: [
|
deps: [
|
||||||
"androidmk-parser",
|
"androidmk-parser",
|
||||||
"blueprint-parser",
|
"blueprint-parser",
|
||||||
"bpfix-lib",
|
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -8,8 +8,6 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"text/scanner"
|
"text/scanner"
|
||||||
|
|
||||||
"android/soong/bpfix/bpfix"
|
|
||||||
|
|
||||||
mkparser "android/soong/androidmk/parser"
|
mkparser "android/soong/androidmk/parser"
|
||||||
|
|
||||||
bpparser "github.com/google/blueprint/parser"
|
bpparser "github.com/google/blueprint/parser"
|
||||||
@@ -178,18 +176,10 @@ func convertFile(filename string, buffer *bytes.Buffer) (string, []error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tree := &bpparser.File{
|
out, err := bpparser.Print(&bpparser.File{
|
||||||
Defs: file.defs,
|
Defs: file.defs,
|
||||||
Comments: file.comments,
|
Comments: file.comments,
|
||||||
}
|
})
|
||||||
|
|
||||||
// check for common supported but undesirable structures and clean them up
|
|
||||||
fixed, err := bpfix.FixTree(tree, bpfix.NewFixRequest().AddAll())
|
|
||||||
if err != nil {
|
|
||||||
return "", []error{err}
|
|
||||||
}
|
|
||||||
|
|
||||||
out, err := bpparser.Print(fixed)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", []error{err}
|
return "", []error{err}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user