Skip to content

Commit

Permalink
emit artifact notifications when copying object files from cache
Browse files Browse the repository at this point in the history
  • Loading branch information
pacak committed Mar 25, 2024
1 parent 17b0afe commit ff7d730
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions compiler/rustc_codegen_ssa/src/back/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,11 @@ fn execute_copy_from_cache_work_item<B: ExtraBackendMethods>(
cgcx.create_dcx().emit_fatal(errors::NoSavedObjectFile { cgu_name: &module.name })
}),
);
if module_config.json_artifact_notifications {
if let Some(path) = object.as_deref() {
cgcx.create_dcx().emit_artifact_notification(path, "obj");
}
}
let dwarf_object =
module.source.saved_files.get("dwo").as_ref().and_then(|saved_dwarf_object_file| {
let dwarf_obj_out = cgcx
Expand Down

0 comments on commit ff7d730

Please sign in to comment.