Merge "[Rust] Correct the gcov path prefix."
This commit is contained in:
@@ -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"))
|
||||||
|
Reference in New Issue
Block a user