Skip to content

Commit

Permalink
run-make-support: add some stable rustc flag helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
jieyouxu committed Jan 16, 2025
1 parent 3e554c6 commit 1bb7060
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/tools/run-make-support/src/external_deps/rustc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,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");
Expand Down

0 comments on commit 1bb7060

Please sign in to comment.