Skip to content

Commit 17b0afe

Browse files
committed
emit artifact notifications for obj in cranelift
1 parent 557615b commit 17b0afe

File tree

1 file changed

+9
-0
lines changed
  • compiler/rustc_codegen_cranelift/src/driver

1 file changed

+9
-0
lines changed

compiler/rustc_codegen_cranelift/src/driver/aot.rs

+9
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,15 @@ impl OngoingCodegen {
106106
}
107107
}
108108

109+
if sess.opts.json_artifact_notifications {
110+
for module in &modules {
111+
let dcx = sess.dcx();
112+
if let Some(path) = module.object.as_deref() {
113+
dcx.emit_artifact_notification(path, "obj");
114+
}
115+
}
116+
}
117+
109118
self.concurrency_limiter.finished();
110119

111120
sess.dcx().abort_if_errors();

0 commit comments

Comments
 (0)