Skip to content

Commit cc9c576

Browse files
committed
Fix LLVM thread names on Windows.
PR rust-lang#112946 tweaked the naming of LLVM threads, but messed things up slightly, resulting in threads on Windows having names like `optimize module {} regex.f10ba03eb5ec7975-cgu.0`. This commit removes the extraneous `{} `.
1 parent c4083fa commit cc9c576

File tree

1 file changed

+3
-3
lines changed
  • compiler/rustc_codegen_ssa/src/back

1 file changed

+3
-3
lines changed

compiler/rustc_codegen_ssa/src/back/write.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -742,9 +742,9 @@ impl<B: WriteBackendMethods> WorkItem<B> {
742742
}
743743

744744
match self {
745-
WorkItem::Optimize(m) => desc("opt", "optimize module {}", &m.name),
746-
WorkItem::CopyPostLtoArtifacts(m) => desc("cpy", "copy LTO artifacts for {}", &m.name),
747-
WorkItem::LTO(m) => desc("lto", "LTO module {}", m.name()),
745+
WorkItem::Optimize(m) => desc("opt", "optimize module", &m.name),
746+
WorkItem::CopyPostLtoArtifacts(m) => desc("cpy", "copy LTO artifacts for", &m.name),
747+
WorkItem::LTO(m) => desc("lto", "LTO module", m.name()),
748748
}
749749
}
750750
}

0 commit comments

Comments
 (0)