bp2build conversion for Sanitize.Integer_overflow
and Sanitize.Misc_undefined. This is a redo of aosp/2277186 with changes to account for issues in mixed builds. Specifically, for now we're disabling mixed builds for modules that use ubsan. This bug tracks enabling it: b/261058727. Bug: 253428057 Test: Unit tests Change-Id: Ia1277a7fa9a82f40998d7f3d2c40ea90f38201e7
This commit is contained in:
7
cc/cc.go
7
cc/cc.go
@@ -1873,8 +1873,11 @@ func (c *Module) IsMixedBuildSupported(ctx android.BaseModuleContext) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// Enable mixed builds as long as the cc_* module type has a bazel handler.
|
||||
return c.bazelHandler != nil
|
||||
// TODO(b/261058727): Remove this (enable mixed builds for modules with UBSan)
|
||||
ubsanEnabled := c.sanitize != nil &&
|
||||
((c.sanitize.Properties.Sanitize.Integer_overflow != nil && *c.sanitize.Properties.Sanitize.Integer_overflow) ||
|
||||
c.sanitize.Properties.Sanitize.Misc_undefined != nil)
|
||||
return c.bazelHandler != nil && !ubsanEnabled
|
||||
}
|
||||
|
||||
func (c *Module) ProcessBazelQueryResponse(ctx android.ModuleContext) {
|
||||
|
Reference in New Issue
Block a user