diff options
Diffstat (limited to 'rust/sanitize.go')
| -rw-r--r-- | rust/sanitize.go | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/rust/sanitize.go b/rust/sanitize.go index aadc00f31..536fcbd17 100644 --- a/rust/sanitize.go +++ b/rust/sanitize.go @@ -49,8 +49,7 @@ type SanitizeProperties struct { Memtag_heap *bool `android:"arch_variant"` } } - SanitizerEnabled bool `blueprint:"mutated"` - SanitizeDepTypes []cc.SanitizerType `blueprint:"mutated"` + SanitizerEnabled bool `blueprint:"mutated"` // Used when we need to place libraries in their own directory, such as ASAN. InSanitizerDir bool `blueprint:"mutated"` @@ -444,28 +443,12 @@ func (mod *Module) IsSanitizerExplicitlyDisabled(t cc.SanitizerType) bool { return mod.sanitize.isSanitizerExplicitlyDisabled(t) } -func (mod *Module) SanitizeDep(t cc.SanitizerType) bool { - for _, e := range mod.sanitize.Properties.SanitizeDepTypes { - if t == e { - return true - } - } - - return false -} - func (mod *Module) SetSanitizer(t cc.SanitizerType, b bool) { if !Bool(mod.sanitize.Properties.Sanitize.Never) { mod.sanitize.SetSanitizer(t, b) } } -func (c *Module) SetSanitizeDep(t cc.SanitizerType) { - if !c.SanitizeDep(t) { - c.sanitize.Properties.SanitizeDepTypes = append(c.sanitize.Properties.SanitizeDepTypes, t) - } -} - func (mod *Module) StaticallyLinked() bool { if lib, ok := mod.compiler.(libraryInterface); ok { return lib.rlib() || lib.static() |