Merge "Fix coverage sanitizer builds" am: 9883461664
am: d6bf916a03
Change-Id: I73bca60ce3ab4ce1e175e5aa626f98b25a51d8d5
This commit is contained in:
@@ -140,6 +140,7 @@ func (sanitize *sanitize) begin(ctx BaseModuleContext) {
|
|||||||
|
|
||||||
if ctx.staticBinary() {
|
if ctx.staticBinary() {
|
||||||
s.Address = nil
|
s.Address = nil
|
||||||
|
s.Coverage = nil
|
||||||
s.Thread = nil
|
s.Thread = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -317,6 +318,9 @@ func (sanitize *sanitize) SetSanitizer(t sanitizerType, b bool) {
|
|||||||
switch t {
|
switch t {
|
||||||
case asan:
|
case asan:
|
||||||
sanitize.Properties.Sanitize.Address = boolPtr(b)
|
sanitize.Properties.Sanitize.Address = boolPtr(b)
|
||||||
|
if !b {
|
||||||
|
sanitize.Properties.Sanitize.Coverage = nil
|
||||||
|
}
|
||||||
case tsan:
|
case tsan:
|
||||||
sanitize.Properties.Sanitize.Thread = boolPtr(b)
|
sanitize.Properties.Sanitize.Thread = boolPtr(b)
|
||||||
default:
|
default:
|
||||||
|
Reference in New Issue
Block a user