Skip to content

Commit 1e87d00

Browse files
committed
run-make-support: add some stable rustc flag helpers
1 parent 68b6f92 commit 1e87d00

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

+12
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,18 @@ impl Rustc {
338338
self
339339
}
340340

341+
/// Specify `-C debuginfo=...`.
342+
pub fn debuginfo(&mut self, level: &str) -> &mut Self {
343+
self.cmd.arg(format!("-Cdebuginfo={level}"));
344+
self
345+
}
346+
347+
/// Specify `-C split-debuginfo={packed,unpacked,off}`.
348+
pub fn split_debuginfo(&mut self, split_kind: &str) -> &mut Self {
349+
self.cmd.arg(format!("-Csplit-debuginfo={split_kind}"));
350+
self
351+
}
352+
341353
/// Pass the `--verbose` flag.
342354
pub fn verbose(&mut self) -> &mut Self {
343355
self.cmd.arg("--verbose");

0 commit comments

Comments
 (0)