run-make-support: add -Csymbol-mangling-version
and -Cprefer-dynamic
helpers to rustc
Co-authored-by: binarycat <binarycat@envs.net>
This commit is contained in:
parent
6c1d960d88
commit
09f68486bd
1 changed files with 12 additions and 0 deletions
|
@ -216,6 +216,18 @@ impl Rustc {
|
|||
self
|
||||
}
|
||||
|
||||
/// Specify option of `-C symbol-mangling-version`.
|
||||
pub fn symbol_mangling_version(&mut self, option: &str) -> &mut Self {
|
||||
self.cmd.arg(format!("-Csymbol-mangling-version={option}"));
|
||||
self
|
||||
}
|
||||
|
||||
/// Specify `-C prefer-dynamic`.
|
||||
pub fn prefer_dynamic(&mut self) -> &mut Self {
|
||||
self.cmd.arg(format!("-Cprefer-dynamic"));
|
||||
self
|
||||
}
|
||||
|
||||
/// Specify error format to use
|
||||
pub fn error_format(&mut self, format: &str) -> &mut Self {
|
||||
self.cmd.arg(format!("--error-format={format}"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue