Fixed androidmk crash when parsing external/aac/Android.mk
Catched the error when bpparser encountered the non-standard make variables. Bug: b/34454142 Test: Manual + (m -j blueprint_tools) command Change-Id: I0766082baa2c2c4020317f975012a476133f4f77
This commit is contained in:
parent
29c69e83dd
commit
62ea583316
1 changed files with 3 additions and 1 deletions
|
@ -261,7 +261,9 @@ func handleAssignment(file *bpFile, assignment *mkparser.Assignment, c *conditio
|
|||
default:
|
||||
var val bpparser.Expression
|
||||
val, err = makeVariableToBlueprint(file, assignment.Value, bpparser.ListType)
|
||||
err = setVariable(file, appendVariable, prefix, name, val, false)
|
||||
if err == nil {
|
||||
err = setVariable(file, appendVariable, prefix, name, val, false)
|
||||
}
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue