Add arch, lib name to header-abi-diff invocation.

Test: mm -j64 in platform/bionic, platform/system/core/liblog.

Bug: 38325544

Change-Id: Ia2098c1facf2999ef51d55212acc1317e2bf98c1
This commit is contained in:
Jayant Chowdhary 2017-05-22 10:53:24 -07:00
parent a9ec71f54f
commit f54e0a79e2
1 changed files with 4 additions and 2 deletions

View File

@ -180,10 +180,10 @@ var (
// Abidiff check turned on in advice-only mode. Builds will not fail on abi incompatibilties / extensions.
sAbiDiff = pctx.AndroidStaticRule("sAbiDiff",
blueprint.RuleParams{
Command: "$sAbiDiffer -advice-only -o ${out} -new $in -old $referenceDump",
Command: "$sAbiDiffer -lib $libName -arch $arch -advice-only -o ${out} -new $in -old $referenceDump",
CommandDeps: []string{"$sAbiDiffer"},
},
"referenceDump")
"referenceDump", "libName", "arch")
)
func init() {
@ -642,6 +642,8 @@ func SourceAbiDiff(ctx android.ModuleContext, inputDump android.Path, referenceD
Implicit: referenceDump,
Args: map[string]string{
"referenceDump": referenceDump.String(),
"libName": baseName,
"arch": ctx.Arch().ArchType.Name,
},
})
return android.OptionalPathForPath(outputFile)