Loading cc/cc.go +10 −0 Original line number Diff line number Diff line Loading @@ -469,6 +469,7 @@ type ModuleContextIntf interface { nativeCoverage() bool directlyInAnyApex() bool isPreventInstall() bool isCfiAssemblySupportEnabled() bool } type ModuleContext interface { Loading Loading @@ -1244,6 +1245,11 @@ func (c *Module) XrefCcFiles() android.Paths { return c.kytheFiles } func (c *Module) isCfiAssemblySupportEnabled() bool { return c.sanitize != nil && Bool(c.sanitize.Properties.Sanitize.Config.Cfi_assembly_support) } type baseModuleContext struct { android.BaseModuleContext moduleContextImpl Loading Loading @@ -1409,6 +1415,10 @@ func (ctx *moduleContextImpl) isPreventInstall() bool { return ctx.mod.Properties.PreventInstall } func (ctx *moduleContextImpl) isCfiAssemblySupportEnabled() bool { return ctx.mod.isCfiAssemblySupportEnabled() } func newBaseModule(hod android.HostOrDeviceSupported, multilib android.Multilib) *Module { return &Module{ hod: hod, Loading cc/coverage.go +2 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,8 @@ func getGcovProfileLibraryName(ctx ModuleContextIntf) string { func getClangProfileLibraryName(ctx ModuleContextIntf) string { if ctx.useSdk() { return "libprofile-clang-extras_ndk" } else if ctx.isCfiAssemblySupportEnabled() { return "libprofile-clang-extras_cfi_support" } else { return "libprofile-clang-extras" } Loading Loading
cc/cc.go +10 −0 Original line number Diff line number Diff line Loading @@ -469,6 +469,7 @@ type ModuleContextIntf interface { nativeCoverage() bool directlyInAnyApex() bool isPreventInstall() bool isCfiAssemblySupportEnabled() bool } type ModuleContext interface { Loading Loading @@ -1244,6 +1245,11 @@ func (c *Module) XrefCcFiles() android.Paths { return c.kytheFiles } func (c *Module) isCfiAssemblySupportEnabled() bool { return c.sanitize != nil && Bool(c.sanitize.Properties.Sanitize.Config.Cfi_assembly_support) } type baseModuleContext struct { android.BaseModuleContext moduleContextImpl Loading Loading @@ -1409,6 +1415,10 @@ func (ctx *moduleContextImpl) isPreventInstall() bool { return ctx.mod.Properties.PreventInstall } func (ctx *moduleContextImpl) isCfiAssemblySupportEnabled() bool { return ctx.mod.isCfiAssemblySupportEnabled() } func newBaseModule(hod android.HostOrDeviceSupported, multilib android.Multilib) *Module { return &Module{ hod: hod, Loading
cc/coverage.go +2 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,8 @@ func getGcovProfileLibraryName(ctx ModuleContextIntf) string { func getClangProfileLibraryName(ctx ModuleContextIntf) string { if ctx.useSdk() { return "libprofile-clang-extras_ndk" } else if ctx.isCfiAssemblySupportEnabled() { return "libprofile-clang-extras_cfi_support" } else { return "libprofile-clang-extras" } Loading