Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 583a226c authored by Jiyong Park's avatar Jiyong Park
Browse files

Don't check apex_available for host

The check doesn't make sense for host.

Test: ALLOW_MISSING_DEPENDENCIES=true DIST_DIR=out/dist
./art/tools/dist_linux_bionic.sh -j110 com.android.art.host
is successful

Change-Id: Icdb4bb557a83b3c8044e6c73721dab47c56888a1
parent 4b5438a9
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -1191,6 +1191,7 @@ func (a *apexBundle) GenerateAndroidBuildActions(ctx android.ModuleContext) {
	})

	// check apex_available requirements
	if !ctx.Host() {
		for _, fi := range filesInfo {
			if am, ok := fi.module.(android.ApexModule); ok {
				if !am.AvailableFor(ctx.ModuleName()) {
@@ -1199,6 +1200,7 @@ func (a *apexBundle) GenerateAndroidBuildActions(ctx android.ModuleContext) {
				}
			}
		}
	}

	// prepend the name of this APEX to the module names. These names will be the names of
	// modules that will be defined if the APEX is flattened.