Merge "Apex_available check failure reveals dependency" into rvc-dev am: 5a3899b5c5
Change-Id: I683d10496836a77d5140031daae27ac71a83c76f
This commit is contained in:
commit
62cdc4ad57
|
@ -1998,7 +1998,7 @@ func (a *apexBundle) checkApexAvailability(ctx android.ModuleContext) {
|
||||||
if externalDep || to.AvailableFor(apexName) || whitelistedApexAvailable(apexName, to) {
|
if externalDep || to.AvailableFor(apexName) || whitelistedApexAvailable(apexName, to) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
ctx.ModuleErrorf("requires %q that is not available for the APEX.", to.Name())
|
ctx.ModuleErrorf("%q requires %q that is not available for the APEX.", from.Name(), to.Name())
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3345,7 +3345,7 @@ func TestApexWithTestHelperApp(t *testing.T) {
|
||||||
|
|
||||||
func TestApexPropertiesShouldBeDefaultable(t *testing.T) {
|
func TestApexPropertiesShouldBeDefaultable(t *testing.T) {
|
||||||
// libfoo's apex_available comes from cc_defaults
|
// libfoo's apex_available comes from cc_defaults
|
||||||
testApexError(t, `"myapex" .*: requires "libfoo" that is not available for the APEX`, `
|
testApexError(t, `"myapex" .*: "myapex" requires "libfoo" that is not available for the APEX`, `
|
||||||
apex {
|
apex {
|
||||||
name: "myapex",
|
name: "myapex",
|
||||||
key: "myapex.key",
|
key: "myapex.key",
|
||||||
|
|
Loading…
Reference in New Issue