diff options
| author | Michael Goulet <michael@errs.io> | 2025-04-06 23:50:16 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-04-07 20:48:40 +0000 |
| commit | 9c372d8940a8dad14d586f6bd4dd42541f25cd80 (patch) | |
| tree | f5f7f7735e27aa5e524b4f815fa63c5f836233bf /compiler/rustc_codegen_cranelift/src/lib.rs | |
| parent | effef88ac70f2d12229b77b8e428037df8028b7e (diff) | |
| download | rust-9c372d8940a8dad14d586f6bd4dd42541f25cd80.tar.gz rust-9c372d8940a8dad14d586f6bd4dd42541f25cd80.zip | |
Prepend temp files with a string per invocation of rustc
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/lib.rs')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/lib.rs b/compiler/rustc_codegen_cranelift/src/lib.rs index e7afaff3b42..9d9e790289c 100644 --- a/compiler/rustc_codegen_cranelift/src/lib.rs +++ b/compiler/rustc_codegen_cranelift/src/lib.rs @@ -124,6 +124,7 @@ impl<F: Fn() -> String> Drop for PrintOnPanic<F> { /// inside a single codegen unit with the exception of the Cranelift [`Module`](cranelift_module::Module). struct CodegenCx { output_filenames: Arc<OutputFilenames>, + invocation_temp: Option<String>, should_write_ir: bool, global_asm: String, inline_asm_index: usize, @@ -142,6 +143,7 @@ impl CodegenCx { }; CodegenCx { output_filenames: tcx.output_filenames(()).clone(), + invocation_temp: tcx.sess.invocation_temp.clone(), should_write_ir: crate::pretty_clif::should_write_ir(tcx), global_asm: String::new(), inline_asm_index: 0, |
