Skip to content

Commit

Permalink
emit artifact notifications for obj in cranelift
Browse files Browse the repository at this point in the history
  • Loading branch information
pacak committed Mar 25, 2024
1 parent 557615b commit 17b0afe
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions compiler/rustc_codegen_cranelift/src/driver/aot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,15 @@ impl OngoingCodegen {
}
}

if sess.opts.json_artifact_notifications {
for module in &modules {
let dcx = sess.dcx();
if let Some(path) = module.object.as_deref() {
dcx.emit_artifact_notification(path, "obj");
}
}
}

self.concurrency_limiter.finished();

sess.dcx().abort_if_errors();
Expand Down

0 comments on commit 17b0afe

Please sign in to comment.