Merge "Don't panic for unhandled product vars" into main

This commit is contained in:
Liz Kammer
2023-09-20 15:10:18 +00:00
committed by Gerrit Code Review
7 changed files with 36 additions and 13 deletions

View File

@@ -517,7 +517,10 @@ func (m *customModule) ConvertWithBp2build(ctx android.TopDownMutatorContext) {
}
}
}
productVariableProps := android.ProductVariableProperties(ctx, ctx.Module())
productVariableProps, errs := android.ProductVariableProperties(ctx, ctx.Module())
for _, err := range errs {
ctx.ModuleErrorf("ProductVariableProperties error: %s", err)
}
if props, ok := productVariableProps["String_literal_prop"]; ok {
for c, p := range props {
if val, ok := p.(*string); ok {