aboutsummaryrefslogtreecommitdiffstats
path: root/cc
diff options
context:
space:
mode:
authorJayant Chowdhary <jchowdhary@google.com>2018-02-01 17:23:09 -0800
committerJayant Chowdhary <jchowdhary@google.com>2018-04-09 09:46:49 -0700
commite3ee2f5e67bd2bb5b1883ea255228d64f161e95b (patch)
treea3919f427a6854486f887a96672b9e5d858cd51a /cc
parentd2cc96c24ad50127b12e9f259c946b3782bf49f7 (diff)
downloadbuild_soong-e3ee2f5e67bd2bb5b1883ea255228d64f161e95b.tar.gz
build_soong-e3ee2f5e67bd2bb5b1883ea255228d64f161e95b.tar.bz2
build_soong-e3ee2f5e67bd2bb5b1883ea255228d64f161e95b.zip
Add informational message to help with updation of VNDK abi references.
Bug: 64267858 Test: create reference dump for libjpeg; add exported function to libjpeg; m -j libjpeg.vendor, build fails with helpful message. Test: create reference dump for libjpeg; add exported function to libjpeg; m -j libjpeg.vendor dist DIST_DIR=dist, build fails with helpful message. Merged-In: Iae25374fe937a0cbe8a8ddf9e23c3bc1f62bbb2a Change-Id: Iae25374fe937a0cbe8a8ddf9e23c3bc1f62bbb2a (cherry picked from commit d8b70a39d12bbb5632811de5f3cb25b4456e49e1) (cherry picked from commit 301aa8a8dcb0a92e96ffbf1aa2da3ca49ce2bda9)
Diffstat (limited to 'cc')
-rw-r--r--cc/builder.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/cc/builder.go b/cc/builder.go
index 59a8cc8a..43bd61fc 100644
--- a/cc/builder.go
+++ b/cc/builder.go
@@ -200,10 +200,12 @@ var (
commandStr := "($sAbiDiffer $allowFlags -lib $libName -arch $arch -check-all-apis -o ${out} -new $in -old $referenceDump)"
distDir := config.ProductVariables.DistDir
+ commandStr += " || (echo ' ---- Please update abi references by running platform/development/vndk/tools/header-checker/utils/create_reference_dumps.py -l ${libName} ----'"
if distDir != nil && *distDir != "" {
distAbiDiffDir := *distDir + "/abidiffs/"
- commandStr += " || (mkdir -p " + distAbiDiffDir + " && cp ${out} " + distAbiDiffDir + " && exit 1)"
+ commandStr += " && (mkdir -p " + distAbiDiffDir + " && cp ${out} " + distAbiDiffDir + ")"
}
+ commandStr += " && exit 1)"
return blueprint.RuleParams{
Command: commandStr,
CommandDeps: []string{"$sAbiDiffer"},
@@ -738,7 +740,7 @@ func SourceAbiDiff(ctx android.ModuleContext, inputDump android.Path, referenceD
Implicit: referenceDump,
Args: map[string]string{
"referenceDump": referenceDump.String(),
- "libName": baseName,
+ "libName": baseName[0:(len(baseName) - len(filepath.Ext(baseName)))],
"arch": ctx.Arch().ArchType.Name,
"allowFlags": strings.Join(localAbiCheckAllowFlags, " "),
},