Skip to content

Commit 51e6271

Browse files
Add Rustc::extra_filename and Rustc::prefer_dynamic methods
1 parent d00a59c commit 51e6271

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,16 @@ 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+
198+
pub fn prefer_dynamic(&mut self) -> &mut Self {
199+
self.cmd.arg("-Cprefer-dynamic");
200+
self
201+
}
202+
193203
/// Specify a stdin input
194204
pub fn stdin<I: AsRef<[u8]>>(&mut self, input: I) -> &mut Self {
195205
self.stdin = Some(input.as_ref().to_vec().into_boxed_slice());

0 commit comments

Comments
 (0)