aboutsummaryrefslogtreecommitdiffstats
path: root/cc/cc.go
diff options
context:
space:
mode:
authorIvan Lozano <ivanlozano@google.com>2018-02-21 15:49:20 -0800
committerIvan Lozano <ivanlozano@google.com>2018-03-21 10:04:53 -0700
commit954f430e9795a8e4a6d2f43cc356129da46fc0f8 (patch)
tree922b6038fefcec49cfe8206e3bc0fdd425dff964 /cc/cc.go
parent0a7d85a89609053e604035c27552dcf8cd483f5d (diff)
downloadbuild_soong-954f430e9795a8e4a6d2f43cc356129da46fc0f8.tar.gz
build_soong-954f430e9795a8e4a6d2f43cc356129da46fc0f8.tar.bz2
build_soong-954f430e9795a8e4a6d2f43cc356129da46fc0f8.zip
Add minimal-runtime support for integer overflows.
Adds Soong support for -fsanitze-minimal-runtime when using the integer overflow sanitizers. This makes the crashes due to these sanitizers less mysterious. Bug: 64091660 Test: Compiled and checked the generated compiler commands Test: Checked program that overflows for the abort reason Change-Id: Ieeceaf6c35c8371592952d3b8b977aefc11601c5 Merged-In: Ieeceaf6c35c8371592952d3b8b977aefc11601c5 (cherry picked from commit 30c5db2f47e0305cd50f0cc90047e9ac9c5f676e)
Diffstat (limited to 'cc/cc.go')
-rw-r--r--cc/cc.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cc/cc.go b/cc/cc.go
index 91bf9a6d..ebc98acf 100644
--- a/cc/cc.go
+++ b/cc/cc.go
@@ -52,6 +52,8 @@ func init() {
ctx.TopDown("tsan_deps", sanitizerDepsMutator(tsan))
ctx.BottomUp("tsan", sanitizerMutator(tsan)).Parallel()
+ ctx.TopDown("minimal_runtime_deps", minimalRuntimeDepsMutator())
+
ctx.BottomUp("coverage", coverageLinkingMutator).Parallel()
ctx.TopDown("vndk_deps", sabiDepsMutator)