Skip to content

Commit 1bb7060

Browse files
committed
run-make-support: add some stable rustc flag helpers
1 parent 3e554c6 commit 1bb7060

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
@@ -325,6 +325,18 @@ impl Rustc {
325325
self
326326
}
327327

328+
/// Specify `-C debuginfo=...`.
329+
pub fn debuginfo(&mut self, level: &str) -> &mut Self {
330+
self.cmd.arg(format!("-Cdebuginfo={level}"));
331+
self
332+
}
333+
334+
/// Specify `-C split-debuginfo={packed,unpacked,off}`.
335+
pub fn split_debuginfo(&mut self, split_kind: &str) -> &mut Self {
336+
self.cmd.arg(format!("-Csplit-debuginfo={split_kind}"));
337+
self
338+
}
339+
328340
/// Pass the `--verbose` flag.
329341
pub fn verbose(&mut self) -> &mut Self {
330342
self.cmd.arg("--verbose");

0 commit comments

Comments
 (0)