Merge "Add diff_flags as a header_abi_checker property" into tm-dev am: 39a9db3bae
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/soong/+/18482834 Change-Id: I6f53043eead9258ecc9903a3d779ed04df60aef2 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -955,9 +955,10 @@ func unzipRefDump(ctx android.ModuleContext, zippedRefDump android.Path, baseNam
|
||||
return outputFile
|
||||
}
|
||||
|
||||
// sourceAbiDiff registers a build statement to compare linked sAbi dump files (.ldump).
|
||||
// sourceAbiDiff registers a build statement to compare linked sAbi dump files (.lsdump).
|
||||
func sourceAbiDiff(ctx android.ModuleContext, inputDump android.Path, referenceDump android.Path,
|
||||
baseName, exportedHeaderFlags string, checkAllApis, isLlndk, isNdk, isVndkExt bool) android.OptionalPath {
|
||||
baseName, exportedHeaderFlags string, diffFlags []string,
|
||||
checkAllApis, isLlndk, isNdk, isVndkExt bool) android.OptionalPath {
|
||||
|
||||
outputFile := android.PathForModuleOut(ctx, baseName+".abidiff")
|
||||
libName := strings.TrimSuffix(baseName, filepath.Ext(baseName))
|
||||
@@ -988,6 +989,8 @@ func sourceAbiDiff(ctx android.ModuleContext, inputDump android.Path, referenceD
|
||||
if isVndkExt {
|
||||
extraFlags = append(extraFlags, "-allow-extensions")
|
||||
}
|
||||
// TODO(b/232891473): Simplify the above logic with diffFlags.
|
||||
extraFlags = append(extraFlags, diffFlags...)
|
||||
|
||||
ctx.Build(pctx, android.BuildParams{
|
||||
Rule: sAbiDiff,
|
||||
|
Reference in New Issue
Block a user