diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-12-15 01:28:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-15 01:28:06 +0100 |
| commit | f87a8f88e3d923db41f01f8c386767c4075b39e4 (patch) | |
| tree | a379e8711eb670da2d198efd11a11c5006e0dedd | |
| parent | eec5f919e78d11a314d87e7c178743597749de9a (diff) | |
| parent | 379fb40277b18d2d123f6eae215f662bf582a5e3 (diff) | |
| download | rust-f87a8f88e3d923db41f01f8c386767c4075b39e4.tar.gz rust-f87a8f88e3d923db41f01f8c386767c4075b39e4.zip | |
Rollup merge of #91868 - tmiasko:llvm-time-trace-out, r=oli-obk
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/..`.
| -rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs index a549bcbd931..30a33b99e50 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -96,7 +96,7 @@ impl CodegenBackend for GccCodegenBackend { Box::new(res) } - fn join_codegen(&self, ongoing_codegen: Box<dyn Any>, sess: &Session) -> Result<(CodegenResults, FxHashMap<WorkProductId, WorkProduct>), ErrorReported> { + fn join_codegen(&self, ongoing_codegen: Box<dyn Any>, sess: &Session, _outputs: &OutputFilenames) -> Result<(CodegenResults, FxHashMap<WorkProductId, WorkProduct>), ErrorReported> { let (codegen_results, work_products) = ongoing_codegen .downcast::<rustc_codegen_ssa::back::write::OngoingCodegen<GccCodegenBackend>>() .expect("Expected GccCodegenBackend's OngoingCodegen, found Box<Any>") |
