Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 40699c2

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

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,18 @@ impl Rustc {
215215
self
216216
}
217217

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

0 commit comments

Comments
 (0)