Rollup merge of #62778 - jsgf:notify-dep-info, r=petrochenkov
Emit artifact notifications for dependency files Emit `dep-info` artifact notifications for `.d` files.
This commit is contained in:
commit
396903b781
@ -688,12 +688,20 @@ fn write_out_deps(sess: &Session, outputs: &OutputFilenames, out_filenames: &[Pa
|
|||||||
Ok(())
|
Ok(())
|
||||||
})();
|
})();
|
||||||
|
|
||||||
if let Err(e) = result {
|
match result {
|
||||||
sess.fatal(&format!(
|
Ok(_) => {
|
||||||
"error writing dependencies to `{}`: {}",
|
if sess.opts.debugging_opts.emit_artifact_notifications {
|
||||||
deps_filename.display(),
|
sess.parse_sess.span_diagnostic
|
||||||
e
|
.emit_artifact_notification(&deps_filename, "dep-info");
|
||||||
));
|
}
|
||||||
|
},
|
||||||
|
Err(e) => {
|
||||||
|
sess.fatal(&format!(
|
||||||
|
"error writing dependencies to `{}`: {}",
|
||||||
|
deps_filename.display(),
|
||||||
|
e
|
||||||
|
))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user