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:
parent
06a6674a7d
commit
3f2a1c9c17
7 changed files with 16 additions and 6 deletions
|
@ -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()?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue