Fix the logic for selecting ABI dump paths
A library may have both VNDK variant and stubs. getRefAbiDumpFile should differentiate its vendor and core variants. Bug: 152277104 Test: Add dumps to platform/ and vndk/ ; make libselinux.vendor libselinux Change-Id: Iad038cf4cd3eccc3dfbef13fab67da044498ce77
This commit is contained in:
parent
eaf8e2deb1
commit
27d235f918
|
@ -1011,8 +1011,9 @@ func (library *libraryDecorator) coverageOutputFilePath() android.OptionalPath {
|
|||
}
|
||||
|
||||
func getRefAbiDumpFile(ctx ModuleContext, vndkVersion, fileName string) android.Path {
|
||||
// The logic must be consistent with classifySourceAbiDump.
|
||||
isNdk := ctx.isNdk()
|
||||
isLlndkOrVndk := ctx.isLlndkPublic(ctx.Config()) || ctx.isVndk()
|
||||
isLlndkOrVndk := ctx.isLlndkPublic(ctx.Config()) || (ctx.useVndk() && ctx.isVndk())
|
||||
|
||||
refAbiDumpTextFile := android.PathForVndkRefAbiDump(ctx, vndkVersion, fileName, isNdk, isLlndkOrVndk, false)
|
||||
refAbiDumpGzipFile := android.PathForVndkRefAbiDump(ctx, vndkVersion, fileName, isNdk, isLlndkOrVndk, true)
|
||||
|
|
Loading…
Reference in New Issue