Abort on abitidy errors. am: 604086f988
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1737315 Change-Id: I1833517f786194dd61a2211254f4515bdbc04871 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -53,9 +53,9 @@ var (
|
|||||||
|
|
||||||
abitidy = pctx.AndroidStaticRule("abitidy",
|
abitidy = pctx.AndroidStaticRule("abitidy",
|
||||||
blueprint.RuleParams{
|
blueprint.RuleParams{
|
||||||
Command: "$abitidy --all -i $in -o $out",
|
Command: "$abitidy --all $flags -i $in -o $out",
|
||||||
CommandDeps: []string{"$abitidy"},
|
CommandDeps: []string{"$abitidy"},
|
||||||
})
|
}, "flags")
|
||||||
|
|
||||||
abidiff = pctx.AndroidStaticRule("abidiff",
|
abidiff = pctx.AndroidStaticRule("abidiff",
|
||||||
blueprint.RuleParams{
|
blueprint.RuleParams{
|
||||||
@@ -104,6 +104,12 @@ type libraryProperties struct {
|
|||||||
// used. This is only needed to work around platform bugs like
|
// used. This is only needed to work around platform bugs like
|
||||||
// https://github.com/android-ndk/ndk/issues/265.
|
// https://github.com/android-ndk/ndk/issues/265.
|
||||||
Unversioned_until *string
|
Unversioned_until *string
|
||||||
|
|
||||||
|
// If true, does not emit errors when APIs lacking type information are
|
||||||
|
// found. This is false by default and should not be enabled outside bionic,
|
||||||
|
// where it is enabled pending a fix for http://b/190554910 (no debug info
|
||||||
|
// for asm implemented symbols).
|
||||||
|
Allow_untyped_symbols *bool
|
||||||
}
|
}
|
||||||
|
|
||||||
type stubDecorator struct {
|
type stubDecorator struct {
|
||||||
@@ -339,14 +345,22 @@ func (this *stubDecorator) dumpAbi(ctx ModuleContext, symbolList android.Path) {
|
|||||||
"symbolList": symbolList.String(),
|
"symbolList": symbolList.String(),
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
this.abiDumpPath = getNdkAbiDumpInstallBase(ctx).Join(ctx,
|
this.abiDumpPath = getNdkAbiDumpInstallBase(ctx).Join(ctx,
|
||||||
this.apiLevel.String(), ctx.Arch().ArchType.String(),
|
this.apiLevel.String(), ctx.Arch().ArchType.String(),
|
||||||
this.libraryName(ctx), "abi.xml")
|
this.libraryName(ctx), "abi.xml")
|
||||||
|
untypedFlag := "--abort-on-untyped-symbols"
|
||||||
|
if proptools.BoolDefault(this.properties.Allow_untyped_symbols, false) {
|
||||||
|
untypedFlag = ""
|
||||||
|
}
|
||||||
ctx.Build(pctx, android.BuildParams{
|
ctx.Build(pctx, android.BuildParams{
|
||||||
Rule: abitidy,
|
Rule: abitidy,
|
||||||
Description: fmt.Sprintf("abitidy %s", implementationLibrary),
|
Description: fmt.Sprintf("abitidy %s", implementationLibrary),
|
||||||
Input: abiRawPath,
|
Input: abiRawPath,
|
||||||
Output: this.abiDumpPath,
|
Output: this.abiDumpPath,
|
||||||
|
Args: map[string]string{
|
||||||
|
"flags": untypedFlag,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user