Merge "Fix coverage sanitizer builds"
am: 9883461664
Change-Id: I2b5ab662ff95c5e18827750fde9bd8f72d24777e
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