Merge "Don't include artifacts for host-cross targets"
diff --git a/apex/apex.go b/apex/apex.go
index e8294a8..0b69111 100644
--- a/apex/apex.go
+++ b/apex/apex.go
@@ -1499,6 +1499,12 @@
}
}
for i, target := range targets {
+ if target.HostCross {
+ // Don't include artifats for the host cross targets because there is no way
+ // for us to run those artifacts natively on host
+ continue
+ }
+
// When multilib.* is omitted for native_shared_libs/jni_libs/tests, it implies
// multilib.both
addDependenciesForNativeModules(ctx,