Merge "Add gcov coverage support to Rust modules."
This commit is contained in:
@@ -1603,6 +1603,8 @@ func (a *apexBundle) IsSanitizerEnabled(ctx android.BaseModuleContext, sanitizer
|
||||
return android.InList(sanitizerName, globalSanitizerNames)
|
||||
}
|
||||
|
||||
var _ cc.Coverage = (*apexBundle)(nil)
|
||||
|
||||
func (a *apexBundle) IsNativeCoverageNeeded(ctx android.BaseModuleContext) bool {
|
||||
return ctx.Device() && (ctx.DeviceConfig().NativeCoverageEnabled() || ctx.DeviceConfig().ClangCoverageEnabled())
|
||||
}
|
||||
@@ -1619,6 +1621,8 @@ func (a *apexBundle) MarkAsCoverageVariant(coverage bool) {
|
||||
a.properties.IsCoverageVariant = coverage
|
||||
}
|
||||
|
||||
func (a *apexBundle) EnableCoverageIfNeeded() {}
|
||||
|
||||
// TODO(jiyong) move apexFileFor* close to the apexFile type definition
|
||||
func apexFileForNativeLibrary(ctx android.BaseModuleContext, ccMod *cc.Module, handleSpecialLibs bool) apexFile {
|
||||
// Decide the APEX-local directory by the multilib of the library
|
||||
|
Reference in New Issue
Block a user