From c7eb5dc7c696781bca12b10272d24f776f07c5d8 Mon Sep 17 00:00:00 2001 From: Oli Scherer Date: Mon, 16 May 2022 14:35:20 +0000 Subject: [PATCH] Filter filenames in cg_diff for local builds, too --- collector/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/src/main.rs b/collector/src/main.rs index 9ebf851e9..4c52d1183 100644 --- a/collector/src/main.rs +++ b/collector/src/main.rs @@ -640,7 +640,7 @@ fn cg_diff(cgout1: &Path, cgout2: &Path, path: &Path) -> anyhow::Result<()> { anyhow::bail!("`cg_diff` not installed."); } let output = Command::new("cg_diff") - .arg("--mod-filename=s#/rustc/[^/]*/##") + .arg("--mod-filename=s/.*(compiler|library)/$1/") .arg("--mod-funcname=s/[.]llvm[.].*//") .arg(cgout1) .arg(cgout2)