Merge "Disable linux_bionic fuzzers"
This commit is contained in:
10
cc/fuzz.go
10
cc/fuzz.go
@@ -105,15 +105,19 @@ func NewFuzz(hod android.HostOrDeviceSupported) *Module {
|
|||||||
|
|
||||||
// The fuzzer runtime is not present for darwin host modules, disable cc_fuzz modules when targeting darwin.
|
// The fuzzer runtime is not present for darwin host modules, disable cc_fuzz modules when targeting darwin.
|
||||||
android.AddLoadHook(module, func(ctx android.LoadHookContext) {
|
android.AddLoadHook(module, func(ctx android.LoadHookContext) {
|
||||||
disableDarwin := struct {
|
disableDarwinAndLinuxBionic := struct {
|
||||||
Target struct {
|
Target struct {
|
||||||
Darwin struct {
|
Darwin struct {
|
||||||
Enabled *bool
|
Enabled *bool
|
||||||
}
|
}
|
||||||
|
Linux_bionic struct {
|
||||||
|
Enabled *bool
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}{}
|
}{}
|
||||||
disableDarwin.Target.Darwin.Enabled = BoolPtr(false)
|
disableDarwinAndLinuxBionic.Target.Darwin.Enabled = BoolPtr(false)
|
||||||
ctx.AppendProperties(&disableDarwin)
|
disableDarwinAndLinuxBionic.Target.Linux_bionic.Enabled = BoolPtr(false)
|
||||||
|
ctx.AppendProperties(&disableDarwinAndLinuxBionic)
|
||||||
})
|
})
|
||||||
|
|
||||||
return module
|
return module
|
||||||
|
Reference in New Issue
Block a user