We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f9df55 commit 2835351Copy full SHA for 2835351
compiler/rustc_session/src/output.rs
@@ -127,6 +127,11 @@ pub fn filename_for_metadata(
127
crate_name: &str,
128
outputs: &OutputFilenames,
129
) -> PathBuf {
130
+ // If the command-line specified the path, use that directly.
131
+ if let Some(Some(out_filename)) = sess.opts.output_types.get(&OutputType::Metadata) {
132
+ return out_filename.clone();
133
+ }
134
+
135
let libname = format!("{}{}", crate_name, sess.opts.cg.extra_filename);
136
137
let out_filename = outputs
0 commit comments