Use cg_ssa's produce_final_output_artifacts in cg_clif#152481
Use cg_ssa's produce_final_output_artifacts in cg_clif#152481rust-bors[bot] merged 1 commit intorust-lang:mainfrom
Conversation
|
r? @fmease rustbot has assigned @fmease. Use Why was this reviewer chosen?The reviewer was selected based on:
|
| let compiled_modules = CompiledModules { modules, allocator_module: self.allocator_module }; | ||
|
|
||
| produce_final_output_artifacts(sess, &codegen_results, outputs); | ||
| produce_final_output_artifacts(sess, &compiled_modules, outputs); |
There was a problem hiding this comment.
cg_clif's now removed produce_final_output_artifacts ignored certain artifact types like asm, llvm ir and llvm bitcode. I guess we now emit an error trying to copy a nonexistent path or does cg_clif now produce some of these files (probably not)? It's fine either way.
Although, long term it would be nice if we could reject --emit=<asm|llvm-bc|llvm-ir-thin-link-bitcode> if cranelift is selected.
There was a problem hiding this comment.
produce_final_output_artifacts handles no files of a certain kind the same as multiple files of a certain kind. So it warns when -o or --emit kind=/path/to/file is given, but otherwise still silently keeps all 0 files.
|
@bors r+ rollup |
…, r=fmease Use cg_ssa's produce_final_output_artifacts in cg_clif
Rollup of 17 pull requests Successful merges: - #142415 (Add note when inherent impl for a alias type defined outside of the crate) - #142680 (Fix passing/returning structs with the 64-bit SPARC ABI) - #150768 (Don't compute FnAbi for LLVM intrinsics in backends) - #151152 (Add FCW for derive helper attributes that will conflict with built-in attributes) - #151814 (layout: handle rigid aliases without params) - #151863 (Borrowck: simplify diagnostics for placeholders) - #152159 (Add note for `?Sized` params in int-ptr casts diag) - #152434 (Clarify names of `QueryVTable` functions for "executing" a query) - #152478 (Remove tm_factory field from CodegenContext) - #152498 (Partially revert "resolve: Update `NameBindingData::vis` in place") - #152316 (fix: add continue) - #152394 (Correctly check if a macro call is actually a macro call in rustdoc highlighter) - #152425 (Port #![test_runner] to the attribute parser) - #152481 (Use cg_ssa's produce_final_output_artifacts in cg_clif) - #152485 (fix issue#152482) - #152495 (Clean up some subdiagnostics) - #152502 (Implement `BinaryHeap::from_raw_vec`)
Rollup merge of #152481 - bjorn3:backends_reduce_duplication, r=fmease Use cg_ssa's produce_final_output_artifacts in cg_clif
Rollup of 17 pull requests Successful merges: - rust-lang/rust#142415 (Add note when inherent impl for a alias type defined outside of the crate) - rust-lang/rust#142680 (Fix passing/returning structs with the 64-bit SPARC ABI) - rust-lang/rust#150768 (Don't compute FnAbi for LLVM intrinsics in backends) - rust-lang/rust#151152 (Add FCW for derive helper attributes that will conflict with built-in attributes) - rust-lang/rust#151814 (layout: handle rigid aliases without params) - rust-lang/rust#151863 (Borrowck: simplify diagnostics for placeholders) - rust-lang/rust#152159 (Add note for `?Sized` params in int-ptr casts diag) - rust-lang/rust#152434 (Clarify names of `QueryVTable` functions for "executing" a query) - rust-lang/rust#152478 (Remove tm_factory field from CodegenContext) - rust-lang/rust#152498 (Partially revert "resolve: Update `NameBindingData::vis` in place") - rust-lang/rust#152316 (fix: add continue) - rust-lang/rust#152394 (Correctly check if a macro call is actually a macro call in rustdoc highlighter) - rust-lang/rust#152425 (Port #![test_runner] to the attribute parser) - rust-lang/rust#152481 (Use cg_ssa's produce_final_output_artifacts in cg_clif) - rust-lang/rust#152485 (fix issue#152482) - rust-lang/rust#152495 (Clean up some subdiagnostics) - rust-lang/rust#152502 (Implement `BinaryHeap::from_raw_vec`)
No description provided.