diff options
author | android-build-team Robot | 2018-05-24 02:25:10 -0500 |
---|---|---|
committer | android-build-team Robot | 2018-05-24 02:25:10 -0500 |
commit | a1f540b3d15fbac96fdfab18608738e32192c69b (patch) | |
tree | c8cc45d35e6196ca2ba181bf6d868076ba08113d | |
parent | ece0786e0f65ab2abb464f374fb824193c491c35 (diff) | |
parent | 165e01b744fe42cf700e388f7e0fb874966a6bfc (diff) | |
download | platform-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.go | 6 | ||||
-rw-r--r-- | cc/sanitize.go | 5 |
2 files changed, 8 insertions, 3 deletions
@@ -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. |
541 | func (ctx *moduleContextImpl) createVndkSourceAbiDump() bool { | 541 | func (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 | ||
552 | func (ctx *moduleContextImpl) selectedStl() string { | 552 | func (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 | ||
541 | func (sanitize *sanitize) isVariantOnProductionDevice() bool { | ||
542 | return !sanitize.isSanitizerEnabled(asan) && | ||
543 | !sanitize.isSanitizerEnabled(tsan) | ||
544 | } | ||
545 | |||
541 | func (sanitize *sanitize) SetSanitizer(t sanitizerType, b bool) { | 546 | func (sanitize *sanitize) SetSanitizer(t sanitizerType, b bool) { |
542 | switch t { | 547 | switch t { |
543 | case asan: | 548 | case asan: |