aboutsummaryrefslogtreecommitdiffstats
path: root/cc
diff options
context:
space:
mode:
authorIvan Lozano <ivanlozano@google.com>2017-07-19 01:14:29 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-07-19 01:14:29 +0000
commit9f32b6b23bd4a09afb1a2bfb242957e044d7ed81 (patch)
tree73164cc5f0ee9a53e7f58d3da5de3f1e856489b1 /cc
parent6b28bd7a485c91cf5373ed46b0c10af1a12541b9 (diff)
parent335565d300b132cfc640a816b5656f08fcb651b9 (diff)
downloadbuild_soong-9f32b6b23bd4a09afb1a2bfb242957e044d7ed81.tar.gz
build_soong-9f32b6b23bd4a09afb1a2bfb242957e044d7ed81.tar.bz2
build_soong-9f32b6b23bd4a09afb1a2bfb242957e044d7ed81.zip
Merge "Allow integer_overflow sanitizer path exclusion."
am: 335565d300 Change-Id: Id19a2328970b540fcbcddb9421a2973eada302a7
Diffstat (limited to 'cc')
-rw-r--r--cc/sanitize.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cc/sanitize.go b/cc/sanitize.go
index 49bd0f31..eccd2558 100644
--- a/cc/sanitize.go
+++ b/cc/sanitize.go
@@ -188,7 +188,9 @@ func (sanitize *sanitize) begin(ctx BaseModuleContext) {
}
if found, globalSanitizers = removeFromList("integer_overflow", globalSanitizers); found && s.Integer_overflow == nil {
- s.Integer_overflow = boolPtr(true)
+ if !ctx.AConfig().IntegerOverflowDisabledForPath(ctx.ModuleDir()) {
+ s.Integer_overflow = boolPtr(true)
+ }
}
if len(globalSanitizers) > 0 {