Merge "Fix ALLOW_MISSING_DEPENDENCIES builds for prebuilt JNI libraries"

This commit is contained in:
Treehugger Robot
2023-01-11 21:09:30 +00:00
committed by Gerrit Code Review

View File

@@ -801,6 +801,8 @@ func collectAppDeps(ctx android.ModuleContext, app appDepsInterface,
unstrippedFile: dep.UnstrippedOutputFile(),
partition: dep.Partition(),
})
} else if ctx.Config().AllowMissingDependencies() {
ctx.AddMissingDependencies([]string{otherName})
} else {
ctx.ModuleErrorf("dependency %q missing output file", otherName)
}