Merge "Allow sanitize attribute on cc_objects and propagate sanitize attributes into them." am: bcb5ca006c
am: 714f705bc0
Change-Id: Ib76b788d0348271e4a332eee5a1109634ba06021
This commit is contained in:
@@ -52,8 +52,9 @@ type ObjectLinkerProperties struct {
|
|||||||
// input to a cc_genrule module.
|
// input to a cc_genrule module.
|
||||||
func ObjectFactory() android.Module {
|
func ObjectFactory() android.Module {
|
||||||
module := newBaseModule(android.HostAndDeviceSupported, android.MultilibBoth)
|
module := newBaseModule(android.HostAndDeviceSupported, android.MultilibBoth)
|
||||||
|
module.sanitize = &sanitize{}
|
||||||
module.linker = &objectLinker{
|
module.linker = &objectLinker{
|
||||||
baseLinker: NewBaseLinker(nil),
|
baseLinker: NewBaseLinker(module.sanitize),
|
||||||
}
|
}
|
||||||
module.compiler = NewBaseCompiler()
|
module.compiler = NewBaseCompiler()
|
||||||
|
|
||||||
|
@@ -674,7 +674,7 @@ func (sanitize *sanitize) isSanitizerEnabled(t sanitizerType) bool {
|
|||||||
|
|
||||||
func isSanitizableDependencyTag(tag blueprint.DependencyTag) bool {
|
func isSanitizableDependencyTag(tag blueprint.DependencyTag) bool {
|
||||||
t, ok := tag.(dependencyTag)
|
t, ok := tag.(dependencyTag)
|
||||||
return ok && t.library || t == reuseObjTag
|
return ok && t.library || t == reuseObjTag || t == objDepTag
|
||||||
}
|
}
|
||||||
|
|
||||||
// Propagate sanitizer requirements down from binaries
|
// Propagate sanitizer requirements down from binaries
|
||||||
|
Reference in New Issue
Block a user