Merge "Delete empty entries for covertedModules in bp2build_metrics"

This commit is contained in:
Jason Wu 2023-01-27 02:02:39 +00:00 committed by Gerrit Code Review
commit 47b0c8c620

View file

@ -188,6 +188,10 @@ const (
)
func (metrics *CodegenMetrics) AddConvertedModule(m blueprint.Module, moduleType string, dir string, conversionType ConversionType) {
//a package module has empty name
if moduleType == "package" {
return
}
// Undo prebuilt_ module name prefix modifications
moduleName := android.RemoveOptionalPrebuiltPrefix(m.Name())
metrics.serialized.ConvertedModules = append(metrics.serialized.ConvertedModules, moduleName)