Lines Matching refs:c

866 	c := mctx.Module().(PlatformSanitizeable)
868 if !c.InVendor() {
872 if !c.StaticallyLinked() {
876 if c.IsPrebuilt() {
880 if !c.SanitizerSupported(cfi) {
884 return c.SanitizePropDefined() &&
885 !c.SanitizeNever() &&
886 !c.IsSanitizerExplicitlyDisabled(cfi)
892 if c, ok := mctx.Module().(PlatformSanitizeable); ok {
893 enabled := c.IsSanitizerEnabled(t)
899 c.SetSanitizeDep(true)
902 isSanitizableDependencyTag := c.SanitizableDepTagChecker()
927 if c, ok := child.(*Module); ok && c.sanitize.isSanitizerEnabled(t) {
935 func (c *Module) SanitizeNever() bool {
936 return Bool(c.sanitize.Properties.Sanitize.Never)
939 func (c *Module) IsSanitizerExplicitlyDisabled(t SanitizerType) bool {
940 return c.sanitize.isSanitizerExplicitlyDisabled(t)
946 if c, ok := mctx.Module().(*Module); ok && c.sanitize != nil {
947 isSanitizableDependencyTag := c.SanitizableDepTagChecker()
961 c.sanitize.Properties.MinimalRuntimeDep = true
965 c.sanitize.Properties.UbsanRuntimeDep = true
968 if c.sanitize.Properties.MinimalRuntimeDep &&
969 c.sanitize.Properties.UbsanRuntimeDep {
974 if c.Os() == android.Linux {
975 c.sanitize.Properties.BuiltinsDep = true
983 c.sanitize.Properties.MinimalRuntimeDep = true
986 c.sanitize.Properties.UbsanRuntimeDep = true
997 if c, ok := mctx.Module().(*Module); ok && c.sanitize != nil {
998 if !c.Enabled() {
1004 if Bool(c.sanitize.Properties.Sanitize.All_undefined) {
1007 if Bool(c.sanitize.Properties.Sanitize.Undefined) {
1032 sanitizers = append(sanitizers, c.sanitize.Properties.Sanitize.Misc_undefined...)
1035 if Bool(c.sanitize.Properties.Sanitize.Diag.Undefined) {
1039 diagSanitizers = append(diagSanitizers, c.sanitize.Properties.Sanitize.Diag.Misc_undefined...)
1041 if Bool(c.sanitize.Properties.Sanitize.Address) {
1046 if Bool(c.sanitize.Properties.Sanitize.Hwaddress) {
1050 if Bool(c.sanitize.Properties.Sanitize.Thread) {
1054 if Bool(c.sanitize.Properties.Sanitize.Safestack) {
1058 if Bool(c.sanitize.Properties.Sanitize.Cfi) {
1061 if Bool(c.sanitize.Properties.Sanitize.Diag.Cfi) {
1066 if Bool(c.sanitize.Properties.Sanitize.Integer_overflow) {
1069 if Bool(c.sanitize.Properties.Sanitize.Diag.Integer_overflow) {
1075 if Bool(c.sanitize.Properties.Sanitize.Scudo) {
1079 if Bool(c.sanitize.Properties.Sanitize.Scs) {
1083 if Bool(c.sanitize.Properties.Sanitize.Memtag_heap) && c.Binary() {
1085 if Bool(c.sanitize.Properties.Sanitize.Diag.Memtag_heap) {
1097 if c.Device() {
1098 variations = append(variations, c.ImageVariation())
1103 if Bool(c.sanitize.Properties.Sanitize.Fuzzer) {
1109 c.sanitize.Properties.Sanitizers = sanitizers
1110 c.sanitize.Properties.DiagSanitizers = diagSanitizers
1113 if c.Host() {
1120 toolchain := c.toolchain(mctx)
1121 if Bool(c.sanitize.Properties.Sanitize.Address) {
1123 } else if Bool(c.sanitize.Properties.Sanitize.Hwaddress) {
1124 if c.staticBinary() {
1130 } else if Bool(c.sanitize.Properties.Sanitize.Thread) {
1132 } else if Bool(c.sanitize.Properties.Sanitize.Scudo) {
1133 if len(diagSanitizers) == 0 && !c.sanitize.Properties.UbsanRuntimeDep {
1138 } else if len(diagSanitizers) > 0 || c.sanitize.Properties.UbsanRuntimeDep ||
1139 Bool(c.sanitize.Properties.Sanitize.Fuzzer) ||
1140 Bool(c.sanitize.Properties.Sanitize.Undefined) ||
1141 Bool(c.sanitize.Properties.Sanitize.All_undefined) {
1143 if c.staticBinary() {
1148 if runtimeLibrary != "" && (toolchain.Bionic() || c.sanitize.Properties.UbsanRuntimeDep) {
1158 if c.staticBinary() {
1172 if c.Device() {
1173 variations = append(variations, c.ImageVariation())
1176 } else if !c.static() && !c.Header() {
1197 if c.Device() {
1198 variations = append(variations, c.ImageVariation())
1200 c.addSharedLibDependenciesWithVersions(mctx, variations, depTag, runtimeLibrary, "", true)
1216 func (c *Module) MinimalRuntimeDep() bool {
1217 return c.sanitize.Properties.MinimalRuntimeDep
1220 func (c *Module) UbsanRuntimeDep() bool {
1221 return c.sanitize.Properties.UbsanRuntimeDep
1224 func (c *Module) SanitizePropDefined() bool {
1225 return c.sanitize != nil
1228 func (c *Module) IsSanitizerEnabled(t SanitizerType) bool {
1229 return c.sanitize.isSanitizerEnabled(t)
1232 func (c *Module) SanitizeDep() bool {
1233 return c.sanitize.Properties.SanitizeDep
1236 func (c *Module) StaticallyLinked() bool {
1237 return c.static()
1240 func (c *Module) SetInSanitizerDir() {
1241 if c.sanitize != nil {
1242 c.sanitize.Properties.InSanitizerDir = true
1246 func (c *Module) SetSanitizer(t SanitizerType, b bool) {
1247 if c.sanitize != nil {
1248 c.sanitize.SetSanitizer(t, b)
1252 func (c *Module) SetSanitizeDep(b bool) {
1253 if c.sanitize != nil {
1254 c.sanitize.Properties.SanitizeDep = b
1263 if c, ok := mctx.Module().(PlatformSanitizeable); ok && c.SanitizePropDefined() {
1264 if c.IsDependencyRoot() && c.IsSanitizerEnabled(t) {
1267 } else if c.IsSanitizerEnabled(t) || c.SanitizeDep() {
1268 isSanitizerEnabled := c.IsSanitizerEnabled(t)
1269 if c.StaticallyLinked() || c.Header() || t == Fuzzer {
1313 if c.StaticallyLinked() && c.ExportedToMake() {
1315 cfiStaticLibs(mctx.Config()).add(c, c.Module().Name())
1317 hwasanStaticLibs(mctx.Config()).add(c, c.Module().Name())
1338 c.SetSanitizeDep(false)
1343 } else if c, ok := mctx.Module().(*Module); ok {
1347 if s, ok := c.linker.(snapshotSanitizer); ok && s.isSanitizerEnabled(t) {
1356 if c.static() && c.ExportedToMake() {
1359 cfiStaticLibs(mctx.Config()).add(c, c.BaseModuleName())
1384 func (s *sanitizerStaticLibsMap) add(c LinkableInterface, name string) {
1385 image := GetImageVariantType(c)
1386 arch := c.Module().Target().Arch.ArchType.String()