aboutsummaryrefslogtreecommitdiffstats
path: root/cc
diff options
context:
space:
mode:
authorJayant Chowdhary <jchowdhary@google.com>2018-03-03 03:03:24 +0000
committerandroid-build-merger <android-build-merger@google.com>2018-03-03 03:03:24 +0000
commit4c26b7818359207371fb26151a81854ab056d681 (patch)
tree500b9458588c4b4d87312b00bd90d83d70457849 /cc
parent8b9897b1430c607d573c929b9cd03545eb664730 (diff)
parent2c3225a1ac2b365c49b88617ee830f55e5ff336b (diff)
downloadbuild_soong-4c26b7818359207371fb26151a81854ab056d681.tar.gz
build_soong-4c26b7818359207371fb26151a81854ab056d681.tar.bz2
build_soong-4c26b7818359207371fb26151a81854ab056d681.zip
Disable abi diffs for sanitized variants of modules. am: ea0a2e1928 am: 1ce7bf12b7
am: 2c3225a1ac Change-Id: I157a6665d1799792472dcf184e125c256ab1fc5a
Diffstat (limited to 'cc')
-rw-r--r--cc/cc.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/cc/cc.go b/cc/cc.go
index 887f3943..a58a84de 100644
--- a/cc/cc.go
+++ b/cc/cc.go
@@ -530,7 +530,12 @@ func (ctx *moduleContextImpl) isVndkExt() bool {
// Create source abi dumps if the module belongs to the list of VndkLibraries.
func (ctx *moduleContextImpl) createVndkSourceAbiDump() bool {
- return ctx.ctx.Device() && ((ctx.useVndk() && ctx.isVndk()) || inList(ctx.baseModuleName(), llndkLibraries))
+ isUnsanitizedVariant := true
+ sanitize := ctx.mod.sanitize
+ if sanitize != nil {
+ isUnsanitizedVariant = sanitize.isUnsanitizedVariant()
+ }
+ return isUnsanitizedVariant && ctx.ctx.Device() && ((ctx.useVndk() && ctx.isVndk()) || inList(ctx.baseModuleName(), llndkLibraries))
}
func (ctx *moduleContextImpl) selectedStl() string {