Merge "Skip dexbootjar check using AllowMissingDependencies flag" am: b7e5985fd5
am: ab47a767d8
am: 572842e09c
am: e0eaa06d87
am: 716ecba7ea
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1803934 Change-Id: Id970ee5cfb571ca78395ea66bfc5e23ff9df5fd2
This commit is contained in:
@@ -500,7 +500,11 @@ func copyBootJarsToPredefinedLocations(ctx android.ModuleContext, srcBootDexJars
|
||||
dst := dstBootJarsByModule[name]
|
||||
|
||||
if src == nil {
|
||||
ctx.ModuleErrorf("module %s does not provide a dex boot jar", name)
|
||||
if !ctx.Config().AllowMissingDependencies() {
|
||||
ctx.ModuleErrorf("module %s does not provide a dex boot jar", name)
|
||||
} else {
|
||||
ctx.AddMissingDependencies([]string{name})
|
||||
}
|
||||
} else if dst == nil {
|
||||
ctx.ModuleErrorf("module %s is not part of the boot configuration", name)
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user