Disable linux_bionic fuzzers

fuzzers require linking to libclang_rt which does not support
linux_bionic. Therefore always disable this target.

Test: ./art/tools/build_linux_bionic_tests.sh
Bug: 138307504
Bug: 118058804
Change-Id: I12816f302d32d5ee846f90c62814744ae35c49bb
This commit is contained in:
Alex Light
2019-07-24 13:34:19 -07:00
parent 1ab2b7b8c5
commit 71123ec1bc

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. // 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