Skip to content

Commit 09f6848

Browse files
run-make-support: add -Csymbol-mangling-version and -Cprefer-dynamic helpers to rustc
Co-authored-by: binarycat <[email protected]>
1 parent 6c1d960 commit 09f6848

File tree

1 file changed

+12
-0
lines changed
  • src/tools/run-make-support/src/external_deps

1 file changed

+12
-0
lines changed

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

+12
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,18 @@ impl Rustc {
216216
self
217217
}
218218

219+
/// Specify option of `-C symbol-mangling-version`.
220+
pub fn symbol_mangling_version(&mut self, option: &str) -> &mut Self {
221+
self.cmd.arg(format!("-Csymbol-mangling-version={option}"));
222+
self
223+
}
224+
225+
/// Specify `-C prefer-dynamic`.
226+
pub fn prefer_dynamic(&mut self) -> &mut Self {
227+
self.cmd.arg(format!("-Cprefer-dynamic"));
228+
self
229+
}
230+
219231
/// Specify error format to use
220232
pub fn error_format(&mut self, format: &str) -> &mut Self {
221233
self.cmd.arg(format!("--error-format={format}"));

0 commit comments

Comments
 (0)