Merge "Disable linux_bionic fuzzers" am: 71568c7cef am: dd76f920cf

am: 42d12995ab

Change-Id: I71a74dbabddee8547bc62f0a2f88ab32a9ab34f3
This commit is contained in:
Alex Light
2019-07-25 16:59:29 -07:00
committed by android-build-merger

View File

@@ -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.
android.AddLoadHook(module, func(ctx android.LoadHookContext) {
disableDarwin := struct {
disableDarwinAndLinuxBionic := struct {
Target struct {
Darwin struct {
Enabled *bool
}
Linux_bionic struct {
Enabled *bool
}
}
}{}
disableDarwin.Target.Darwin.Enabled = BoolPtr(false)
ctx.AppendProperties(&disableDarwin)
disableDarwinAndLinuxBionic.Target.Darwin.Enabled = BoolPtr(false)
disableDarwinAndLinuxBionic.Target.Linux_bionic.Enabled = BoolPtr(false)
ctx.AppendProperties(&disableDarwinAndLinuxBionic)
})
return module