Merge "Add config.AndroidFirstDeviceTarget." am: 19bc60abee
am: 460960c457
am: 5a6e34b4c1
am: 5f161bd869
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1456597 Change-Id: If84c4799b3c4c66a40e7a8aeb8735b67e016ced0
This commit is contained in:
@@ -643,7 +643,7 @@ func (a *AndroidApp) jniBuildActions(jniLibs []jniLib, ctx android.ModuleContext
|
||||
// Work with the team to come up with a new format that handles multilib modules properly
|
||||
// and change this.
|
||||
if len(ctx.Config().Targets[android.Android]) == 1 ||
|
||||
ctx.Config().Targets[android.Android][0].Arch.ArchType == jni.target.Arch.ArchType {
|
||||
ctx.Config().AndroidFirstDeviceTarget.Arch.ArchType == jni.target.Arch.ArchType {
|
||||
a.jniCoverageOutputs = append(a.jniCoverageOutputs, jni.coverageFile.Path())
|
||||
}
|
||||
}
|
||||
@@ -1402,7 +1402,7 @@ func (a *AndroidAppImport) processVariants(ctx android.LoadHookContext) {
|
||||
}
|
||||
|
||||
archProps := reflect.ValueOf(a.archVariants).Elem().FieldByName("Arch")
|
||||
archType := ctx.Config().Targets[android.Android][0].Arch.ArchType
|
||||
archType := ctx.Config().AndroidFirstDeviceTarget.Arch.ArchType
|
||||
MergePropertiesFromVariant(ctx, &a.properties, archProps, archType.Name)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user