Enable ubsan check flag in build
Ubsan is currently support ARM/ARM64, so It's OK to enable the build Flag Test: build test module with flags in Android.bp: sanitize: { all_undefined: true, diag: { undefined: true, }, }, BUG:38250996 Change-Id: I37a01b4610132f58315e68335b3c3cdfb148357d
This commit is contained in:
@@ -285,9 +285,6 @@ func (sanitize *sanitize) flags(ctx ModuleContext, flags Flags) Flags {
|
||||
|
||||
if Bool(sanitize.Properties.Sanitize.All_undefined) {
|
||||
sanitizers = append(sanitizers, "undefined")
|
||||
if ctx.Device() {
|
||||
ctx.ModuleErrorf("ubsan is not yet supported on the device")
|
||||
}
|
||||
} else {
|
||||
if Bool(sanitize.Properties.Sanitize.Undefined) {
|
||||
sanitizers = append(sanitizers,
|
||||
|
Reference in New Issue
Block a user