Merge "[Rust] Correct the gcov path prefix."

This commit is contained in:
Ivan Lozano
2020-06-17 18:58:52 +00:00
committed by Gerrit Code Review

View File

@@ -163,7 +163,7 @@ func transformSrctoCrate(ctx android.ModuleContext, main android.Path, deps Path
if flags.Coverage { if flags.Coverage {
var gcnoFile android.WritablePath var gcnoFile android.WritablePath
// Provide consistency with cc gcda output, see cc/builder.go init() // Provide consistency with cc gcda output, see cc/builder.go init()
profileEmitArg := strings.TrimPrefix("PWD=", cc.PwdPrefix()) + "/" profileEmitArg := strings.TrimPrefix(cc.PwdPrefix(), "PWD=") + "/"
if outputFile.Ext() != "" { if outputFile.Ext() != "" {
gcnoFile = android.PathForModuleOut(ctx, pathtools.ReplaceExtension(outputFile.Base(), "gcno")) gcnoFile = android.PathForModuleOut(ctx, pathtools.ReplaceExtension(outputFile.Base(), "gcno"))