aboutsummaryrefslogtreecommitdiffstats
path: root/cc
diff options
context:
space:
mode:
authorJayant Chowdhary <jchowdhary@google.com>2018-04-18 18:08:00 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2018-04-18 18:08:00 +0000
commit31db990217b3dc51842fe86218b2fc74dc3faeaf (patch)
treeb11153b942af8723328fbfba08715dd4efdc40fe /cc
parent8328367c44085b948c003116c0ed74a047237a69 (diff)
parent0e5afde2f6f69662307e67e53575e0ccb6237430 (diff)
downloadbuild_soong-31db990217b3dc51842fe86218b2fc74dc3faeaf.tar.gz
build_soong-31db990217b3dc51842fe86218b2fc74dc3faeaf.tar.bz2
build_soong-31db990217b3dc51842fe86218b2fc74dc3faeaf.zip
Merge "Setting SKIP_ABI_CHECKS=true will make soong skip native abi checks." into pi-dev
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 e5eb8d8b..50766fa0 100644
--- a/cc/cc.go
+++ b/cc/cc.go
@@ -539,13 +539,14 @@ func (ctx *moduleContextImpl) isVndkExt() bool {
// Create source abi dumps if the module belongs to the list of VndkLibraries.
func (ctx *moduleContextImpl) createVndkSourceAbiDump() bool {
+ skipAbiChecks := ctx.ctx.Config().IsEnvTrue("SKIP_ABI_CHECKS")
isUnsanitizedVariant := true
sanitize := ctx.mod.sanitize
if sanitize != nil {
isUnsanitizedVariant = sanitize.isUnsanitizedVariant()
}
vendorAvailable := Bool(ctx.mod.VendorProperties.Vendor_available)
- return isUnsanitizedVariant && ctx.ctx.Device() && ((ctx.useVndk() && ctx.isVndk() && vendorAvailable) || inList(ctx.baseModuleName(), llndkLibraries))
+ return !skipAbiChecks && isUnsanitizedVariant && ctx.ctx.Device() && ((ctx.useVndk() && ctx.isVndk() && vendorAvailable) || inList(ctx.baseModuleName(), llndkLibraries))
}
func (ctx *moduleContextImpl) selectedStl() string {