build: soong-info: Preserve module_name

module_name isn't exactly the same as keys in the module map, and we
need it to handle multilib correctly.
This commit is contained in:
Danny Lin 2021-12-17 15:46:30 -08:00
parent 9fd0e1a146
commit 12c25a6798

View file

@ -4,11 +4,11 @@ export interface TargetModuleInfo {
tags: Array<string> tags: Array<string>
installed: Array<string> installed: Array<string>
srcs: Array<string> srcs: Array<string>
module_name: string
// Removed to reduce size in SystemState // Removed to reduce size in SystemState
compatibility_suites?: Array<string> compatibility_suites?: Array<string>
auto_test_config?: Array<string> auto_test_config?: Array<string>
module_name?: string
test_config?: Array<string> test_config?: Array<string>
dependencies?: Array<string> dependencies?: Array<string>
srcjars?: Array<string> srcjars?: Array<string>
@ -48,7 +48,6 @@ export function minimizeModules(info: SoongModuleInfo) {
delete module.compatibility_suites delete module.compatibility_suites
delete module.auto_test_config delete module.auto_test_config
delete module.module_name
delete module.test_config delete module.test_config
delete module.dependencies delete module.dependencies
delete module.srcjars delete module.srcjars