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
This commit is contained in:
2
cc/cc.go
2
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)
|
||||
|
||||
|
Reference in New Issue
Block a user