Merge "Skip error check if allow missing deps is true" into main am: 9915e03018
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2835006 Change-Id: I37358871ccc58b846d3b96e8fd647582445aa483 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -98,7 +98,7 @@ func (a *allApexContributions) DepsMutator(ctx BottomUpMutatorContext) {
|
|||||||
func (a *allApexContributions) SetPrebuiltSelectionInfoProvider(ctx BaseModuleContext) {
|
func (a *allApexContributions) SetPrebuiltSelectionInfoProvider(ctx BaseModuleContext) {
|
||||||
addContentsToProvider := func(p *PrebuiltSelectionInfoMap, m *apexContributions) {
|
addContentsToProvider := func(p *PrebuiltSelectionInfoMap, m *apexContributions) {
|
||||||
for _, content := range m.Contents() {
|
for _, content := range m.Contents() {
|
||||||
if !ctx.OtherModuleExists(content) {
|
if !ctx.OtherModuleExists(content) && !ctx.Config().AllowMissingDependencies() {
|
||||||
ctx.ModuleErrorf("%s listed in apex_contributions %s does not exist\n", content, m.Name())
|
ctx.ModuleErrorf("%s listed in apex_contributions %s does not exist\n", content, m.Name())
|
||||||
}
|
}
|
||||||
pi := &PrebuiltSelectionInfo{
|
pi := &PrebuiltSelectionInfo{
|
||||||
|
Reference in New Issue
Block a user