Add CommonOs to Config.Targets

Previously, CommonOs was not added to Config.Targets for the test which
caused AndroidMk to crash when trying to determine if a target needed
the 2ND_ prefix added to some make variables.

Bug: 245956352
Test: m nothing
Change-Id: Ia815537ee5ce8e83df9a01c57250aa888453d138
This commit is contained in:
Paul Duffin
2022-10-05 15:47:25 +01:00
parent 298b6b0c19
commit de13a3a232

View File

@@ -91,6 +91,9 @@ func modifyTestConfigToSupportArchMutator(testConfig Config) {
},
}
// Make the CommonOS OsType available for all products.
config.Targets[CommonOS] = []Target{commonTargetMap[CommonOS.Name]}
if runtime.GOOS == "darwin" {
config.Targets[config.BuildOS] = config.Targets[config.BuildOS][:1]
}