Skip to content

Commit 5a00105

Browse files
Add Rustc::extra_filename method
1 parent d00a59c commit 5a00105

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/tools/run-make-support/src/rustc.rs

+5
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,11 @@ impl Rustc {
190190
self
191191
}
192192

193+
pub fn extra_filename(&mut self, extra: &str) -> &mut Self {
194+
self.cmd.arg(format!("-Cextra-filename={extra}"));
195+
self
196+
}
197+
193198
/// Specify a stdin input
194199
pub fn stdin<I: AsRef<[u8]>>(&mut self, input: I) -> &mut Self {
195200
self.stdin = Some(input.as_ref().to_vec().into_boxed_slice());

0 commit comments

Comments
 (0)