Disable cc_fuzz darwin host modules am: eec9b286b0
am: 0ba21628ab
am: 6961c6631c
Change-Id: Ie8403dc8f2639211b4d8197df6a4d030b9b787f2
This commit is contained in:
14
cc/fuzz.go
14
cc/fuzz.go
@@ -102,5 +102,19 @@ func NewFuzz(hod android.HostOrDeviceSupported) *Module {
|
|||||||
module.compiler = fuzz
|
module.compiler = fuzz
|
||||||
module.linker = fuzz
|
module.linker = fuzz
|
||||||
module.installer = fuzz
|
module.installer = fuzz
|
||||||
|
|
||||||
|
// 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 {
|
||||||
|
Target struct {
|
||||||
|
Darwin struct {
|
||||||
|
Enabled *bool
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}{}
|
||||||
|
disableDarwin.Target.Darwin.Enabled = BoolPtr(false)
|
||||||
|
ctx.AppendProperties(&disableDarwin)
|
||||||
|
})
|
||||||
|
|
||||||
return module
|
return module
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user