Skip to content

Commit 89a4daf

Browse files
committed
Fix cg_diff --mod-filename regex.
In Valgrind 3.21 `cg_diff` was rewritten, and it's no longer possible to use separators other than `/` in the command line regexes.
1 parent 1a0c542 commit 89a4daf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

collector/src/bin/collector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ fn cg_diff(cgout1: &Path, cgout2: &Path, path: &Path) -> anyhow::Result<()> {
314314
anyhow::bail!("`cg_diff` not installed.");
315315
}
316316
let output = Command::new("cg_diff")
317-
.arg("--mod-filename=s#/rustc/[^/]*/##")
317+
.arg(r"--mod-filename=s/\/rustc\/[^\/]*\///")
318318
.arg("--mod-funcname=s/[.]llvm[.].*//")
319319
.arg(cgout1)
320320
.arg(cgout2)

0 commit comments

Comments
 (0)