mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 20:45:45 +03:00
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:
committed by
Jieyou Xu
parent
6c1d960d88
commit
09f68486bd
@@ -216,6 +216,18 @@ pub fn profile_use<P: AsRef<Path>>(&mut self, path: P) -> &mut Self {
|
||||
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}"));
|
||||
|
||||
Reference in New Issue
Block a user