mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-17 06:26:55 +00:00
run-make-support: add some stable rustc
flag helpers
This commit is contained in:
parent
68b6f92a56
commit
1e87d00e11
@ -338,6 +338,18 @@ impl Rustc {
|
||||
self
|
||||
}
|
||||
|
||||
/// Specify `-C debuginfo=...`.
|
||||
pub fn debuginfo(&mut self, level: &str) -> &mut Self {
|
||||
self.cmd.arg(format!("-Cdebuginfo={level}"));
|
||||
self
|
||||
}
|
||||
|
||||
/// Specify `-C split-debuginfo={packed,unpacked,off}`.
|
||||
pub fn split_debuginfo(&mut self, split_kind: &str) -> &mut Self {
|
||||
self.cmd.arg(format!("-Csplit-debuginfo={split_kind}"));
|
||||
self
|
||||
}
|
||||
|
||||
/// Pass the `--verbose` flag.
|
||||
pub fn verbose(&mut self) -> &mut Self {
|
||||
self.cmd.arg("--verbose");
|
||||
|
Loading…
Reference in New Issue
Block a user