1
Fork 0

Show files produced by --emit foo in json artifact notifications

This commit is contained in:
Michael Baikov 2024-04-06 11:22:21 -04:00
parent 43a0686f8d
commit c8390cdbfa
7 changed files with 140 additions and 1 deletions

View file

@ -28,6 +28,9 @@ pub fn emit_mir(tcx: TyCtxt<'_>) -> io::Result<()> {
OutFileName::Real(path) => {
let mut f = io::BufWriter::new(File::create(&path)?);
write_mir_pretty(tcx, None, &mut f)?;
if tcx.sess.opts.json_artifact_notifications {
tcx.dcx().emit_artifact_notification(&path, "mir");
}
}
}
Ok(())