We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0e8578 commit abf9653Copy full SHA for abf9653
compiler/rustc_session/src/config.rs
@@ -596,7 +596,14 @@ impl OutputFilenames {
596
.get(&flavor)
597
.and_then(|p| p.to_owned())
598
.or_else(|| self.single_output_file.clone())
599
- .unwrap_or_else(|| self.temp_path(flavor, None))
+ .unwrap_or_else(|| self.output_path(flavor))
600
+ }
601
+
602
+ /// Gets the output path where a compilation artifact of the given type
603
+ /// should be placed on disk.
604
+ pub fn output_path(&self, flavor: OutputType) -> PathBuf {
605
+ let extension = flavor.extension();
606
+ self.with_directory_and_extension(&self.out_directory, &extension)
607
}
608
609
/// Gets the path where a compilation artifact of the given type for the
0 commit comments