Merge commit '35d9c6bf25
' into sync_cg_clif-2022-02-23
This commit is contained in:
commit
f596dce542
24 changed files with 843 additions and 809 deletions
|
@ -56,6 +56,9 @@ fn emit_module(
|
|||
|
||||
let tmp_file = tcx.output_filenames(()).temp_path(OutputType::Object, Some(&name));
|
||||
let obj = product.object.write().unwrap();
|
||||
|
||||
tcx.sess.prof.artifact_size("object_file", name.clone(), obj.len().try_into().unwrap());
|
||||
|
||||
if let Err(err) = std::fs::write(&tmp_file, obj) {
|
||||
tcx.sess.fatal(&format!("error writing object file: {}", err));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue