Skip to content

Commit ff7d730

Browse files
committed
emit artifact notifications when copying object files from cache
1 parent 17b0afe commit ff7d730

File tree

1 file changed

+5
-0
lines changed
  • compiler/rustc_codegen_ssa/src/back

1 file changed

+5
-0
lines changed

compiler/rustc_codegen_ssa/src/back/write.rs

+5
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,11 @@ fn execute_copy_from_cache_work_item<B: ExtraBackendMethods>(
928928
cgcx.create_dcx().emit_fatal(errors::NoSavedObjectFile { cgu_name: &module.name })
929929
}),
930930
);
931+
if module_config.json_artifact_notifications {
932+
if let Some(path) = object.as_deref() {
933+
cgcx.create_dcx().emit_artifact_notification(path, "obj");
934+
}
935+
}
931936
let dwarf_object =
932937
module.source.saved_files.get("dwo").as_ref().and_then(|saved_dwarf_object_file| {
933938
let dwarf_obj_out = cgcx

0 commit comments

Comments
 (0)