Merge "Add gcov coverage support to Rust modules." am: 6c4e5c05c3
am: acdf2ac701
Change-Id: Id236afb83e583a93020803302a61dbf46904c295
This commit is contained in:
@@ -1607,6 +1607,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())
|
||||
}
|
||||
@@ -1623,6 +1625,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