aboutsummaryrefslogtreecommitdiffstats
path: root/cc
diff options
context:
space:
mode:
authorJayant Chowdhary <jchowdhary@google.com>2018-03-06 14:59:50 -0800
committerJayant Chowdhary <jchowdhary@google.com>2018-03-07 11:12:41 -0800
commitbb0a8bd5ee808436f1e4a7457c66206a49250afa (patch)
treefa6d369b7ef81b545a3a12c0dadf16ec10c5f5da /cc
parentd2fc244b060ebd37f0ed8ee766fde151aea45fd6 (diff)
downloadbuild_soong-bb0a8bd5ee808436f1e4a7457c66206a49250afa.tar.gz
build_soong-bb0a8bd5ee808436f1e4a7457c66206a49250afa.tar.bz2
build_soong-bb0a8bd5ee808436f1e4a7457c66206a49250afa.zip
No abi diffing for vndk libraries which are not vendor available.
Vendor binaries cannot directly link with vndk libraries which are not vendor available. We don't need them to be abi stable. Bug: 66301104 Test: cd external/cblas; touch src/cblas_cher.c; mm -j64 does not produce an lsdump for libblas, since it isn't vendor available, even though it is vndk_enabled: true. Change-Id: Ib2e1eaa06c4dc2e05623bd7b9aa3a83010f76bd1 Merged-In: Ib2e1eaa06c4dc2e05623bd7b9aa3a83010f76bd1 (cherry picked from commit 22963cda0ebd2ae682c2ce6cdaf5937762d0e5d2)
Diffstat (limited to 'cc')
-rw-r--r--cc/cc.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cc/cc.go b/cc/cc.go
index a58a84de..91bf9a6d 100644
--- a/cc/cc.go
+++ b/cc/cc.go
@@ -535,7 +535,8 @@ func (ctx *moduleContextImpl) createVndkSourceAbiDump() bool {
if sanitize != nil {
isUnsanitizedVariant = sanitize.isUnsanitizedVariant()
}
- return isUnsanitizedVariant && ctx.ctx.Device() && ((ctx.useVndk() && ctx.isVndk()) || inList(ctx.baseModuleName(), llndkLibraries))
+ vendorAvailable := Bool(ctx.mod.VendorProperties.Vendor_available)
+ return vendorAvailable && isUnsanitizedVariant && ctx.ctx.Device() && ((ctx.useVndk() && ctx.isVndk()) || inList(ctx.baseModuleName(), llndkLibraries))
}
func (ctx *moduleContextImpl) selectedStl() string {