Use OutputFilenames to generate output file for -Zllvm-time-trace
The resulting profile will include the crate name and will be stored in the `--out-dir` directory. This implementation makes it convenient to use LLVM time trace together with cargo, in the contrast to the previous implementation which would overwrite profiles or store them in `.cargo/registry/..`.
This commit is contained in:
@@ -335,8 +335,11 @@ pub struct Linker {
|
||||
|
||||
impl Linker {
|
||||
pub fn link(self) -> Result<()> {
|
||||
let (codegen_results, work_products) =
|
||||
self.codegen_backend.join_codegen(self.ongoing_codegen, &self.sess)?;
|
||||
let (codegen_results, work_products) = self.codegen_backend.join_codegen(
|
||||
self.ongoing_codegen,
|
||||
&self.sess,
|
||||
&self.prepare_outputs,
|
||||
)?;
|
||||
|
||||
self.sess.compile_status()?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user