Skip to content

Commit 0132adc

Browse files
author
Tor Hovland
committed
Emitted files go to the output dir.
1 parent bde794d commit 0132adc

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

compiler/rustc_session/src/config.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,14 @@ impl OutputFilenames {
611611
.get(&flavor)
612612
.and_then(|p| p.to_owned())
613613
.or_else(|| self.single_output_file.clone())
614-
.unwrap_or_else(|| self.temp_path(flavor, None))
614+
.unwrap_or_else(|| self.output_path(flavor))
615+
}
616+
617+
/// Gets the output path where a compilation artifact of the given type
618+
/// should be placed on disk.
619+
pub fn output_path(&self, flavor: OutputType) -> PathBuf {
620+
let extension = flavor.extension();
621+
self.with_directory_and_extension(&self.out_directory, &extension)
615622
}
616623

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

0 commit comments

Comments
 (0)