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