aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandroid-build-team Robot2018-05-24 02:25:10 -0500
committerandroid-build-team Robot2018-05-24 02:25:10 -0500
commita1f540b3d15fbac96fdfab18608738e32192c69b (patch)
treec8cc45d35e6196ca2ba181bf6d868076ba08113d
parentece0786e0f65ab2abb464f374fb824193c491c35 (diff)
parent165e01b744fe42cf700e388f7e0fb874966a6bfc (diff)
downloadplatform-build-soong-a1f540b3d15fbac96fdfab18608738e32192c69b.tar.gz
platform-build-soong-a1f540b3d15fbac96fdfab18608738e32192c69b.tar.xz
platform-build-soong-a1f540b3d15fbac96fdfab18608738e32192c69b.zip
Snap for 4801384 from 165e01b744fe42cf700e388f7e0fb874966a6bfc to pi-release
Change-Id: I2d863012b6e1bd554d3c41ed841363c2c02a6a5c
-rw-r--r--cc/cc.go6
-rw-r--r--cc/sanitize.go5
2 files changed, 8 insertions, 3 deletions
diff --git a/cc/cc.go b/cc/cc.go
index 50766fa0..ca3f8726 100644
--- a/cc/cc.go
+++ b/cc/cc.go
@@ -540,13 +540,13 @@ func (ctx *moduleContextImpl) isVndkExt() bool {
540// Create source abi dumps if the module belongs to the list of VndkLibraries. 540// Create source abi dumps if the module belongs to the list of VndkLibraries.
541func (ctx *moduleContextImpl) createVndkSourceAbiDump() bool { 541func (ctx *moduleContextImpl) createVndkSourceAbiDump() bool {
542 skipAbiChecks := ctx.ctx.Config().IsEnvTrue("SKIP_ABI_CHECKS") 542 skipAbiChecks := ctx.ctx.Config().IsEnvTrue("SKIP_ABI_CHECKS")
543 isUnsanitizedVariant := true 543 isVariantOnProductionDevice := true
544 sanitize := ctx.mod.sanitize 544 sanitize := ctx.mod.sanitize
545 if sanitize != nil { 545 if sanitize != nil {
546 isUnsanitizedVariant = sanitize.isUnsanitizedVariant() 546 isVariantOnProductionDevice = sanitize.isVariantOnProductionDevice()
547 } 547 }
548 vendorAvailable := Bool(ctx.mod.VendorProperties.Vendor_available) 548 vendorAvailable := Bool(ctx.mod.VendorProperties.Vendor_available)
549 return !skipAbiChecks && isUnsanitizedVariant && ctx.ctx.Device() && ((ctx.useVndk() && ctx.isVndk() && vendorAvailable) || inList(ctx.baseModuleName(), llndkLibraries)) 549 return !skipAbiChecks && isVariantOnProductionDevice && ctx.ctx.Device() && ((ctx.useVndk() && ctx.isVndk() && vendorAvailable) || inList(ctx.baseModuleName(), llndkLibraries))
550} 550}
551 551
552func (ctx *moduleContextImpl) selectedStl() string { 552func (ctx *moduleContextImpl) selectedStl() string {
diff --git a/cc/sanitize.go b/cc/sanitize.go
index 23a7be44..fc44eaf1 100644
--- a/cc/sanitize.go
+++ b/cc/sanitize.go
@@ -538,6 +538,11 @@ func (sanitize *sanitize) isUnsanitizedVariant() bool {
538 !sanitize.isSanitizerEnabled(cfi) 538 !sanitize.isSanitizerEnabled(cfi)
539} 539}
540 540
541func (sanitize *sanitize) isVariantOnProductionDevice() bool {
542 return !sanitize.isSanitizerEnabled(asan) &&
543 !sanitize.isSanitizerEnabled(tsan)
544}
545
541func (sanitize *sanitize) SetSanitizer(t sanitizerType, b bool) { 546func (sanitize *sanitize) SetSanitizer(t sanitizerType, b bool) {
542 switch t { 547 switch t {
543 case asan: 548 case asan: