Skip to content

Commit abf9653

Browse files
author
Tor Hovland
committed
Emitted files go to the output dir.
1 parent c0e8578 commit abf9653

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

compiler/rustc_session/src/config.rs

+8-1
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,14 @@ impl OutputFilenames {
596596
.get(&flavor)
597597
.and_then(|p| p.to_owned())
598598
.or_else(|| self.single_output_file.clone())
599-
.unwrap_or_else(|| self.temp_path(flavor, None))
599+
.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)
600607
}
601608

602609
/// Gets the path where a compilation artifact of the given type for the

0 commit comments

Comments
 (0)