diff options
author | 2022-11-29 17:20:16 +0000 | |
---|---|---|
committer | 2022-11-29 17:20:16 +0000 | |
commit | f7cb563a18ee8fc58551bde68a58268094743aeb (patch) | |
tree | b23ef5c86587452a2d2bc64c6c93789bd3dcb716 /cc/ndk_library.go | |
parent | 7d78bad7e258d4a30909d13143dd2718363ffe35 (diff) |
Improve error output for missing ABI dumps.
Bug: http://b/156513478
Test: tried using this, saw the error message
Change-Id: Ia5b292315a5c5d603ab0ba4dc3303b1b8ff2ef5b
Diffstat (limited to 'cc/ndk_library.go')
-rw-r--r-- | cc/ndk_library.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cc/ndk_library.go b/cc/ndk_library.go index d704e32f6..2473ba2a3 100644 --- a/cc/ndk_library.go +++ b/cc/ndk_library.go @@ -396,14 +396,14 @@ func findNextApiLevel(ctx ModuleContext, apiLevel android.ApiLevel) *android.Api } func (this *stubDecorator) diffAbi(ctx ModuleContext) { - missingPrebuiltError := fmt.Sprintf( - "Did not find prebuilt ABI dump for %q. Generate with "+ - "//development/tools/ndk/update_ndk_abi.sh.", this.libraryName(ctx)) - // Catch any ABI changes compared to the checked-in definition of this API // level. abiDiffPath := android.PathForModuleOut(ctx, "abidiff.timestamp") prebuiltAbiDump := this.findPrebuiltAbiDump(ctx, this.apiLevel) + missingPrebuiltError := fmt.Sprintf( + "Did not find prebuilt ABI dump for %q (%q). Generate with "+ + "//development/tools/ndk/update_ndk_abi.sh.", this.libraryName(ctx), + prebuiltAbiDump.InvalidReason()) if !prebuiltAbiDump.Valid() { ctx.Build(pctx, android.BuildParams{ Rule: android.ErrorRule, |